- Start your Apidog journey
- Sample APIs
- Users
- Ecommerce
- Profile
- Features Group
- Features
- Order
- Order web
- Appointment
- Quotation
- Plan
- Addresses
- Watch list Web
- Dashboard Carts
- Capabilities
- Product
- Production Line
- Attribute
- Group
- Review
- Branch
- Create Branch
- Update Branch By Id
- Get Branch By Id
- Get Branch All
- Get Branchs with pagination
- Delete Branch By Id
- Bulk Delete Branches
- Get Web Branch By Coordinates
- Get All Web Branch With Pagination
- Get All Web Branch
- Import Branch Zones
- Get Import Branch Zones Example
- Get Branch Zones File
- Import Branch Products
- Get Import Branch Products Example
- Get Branch Products File
- Link To Branches
- Addons
- Get Web Product By Id
- Get Web Product By Criteria
- Create Product
- Get Product By Id
- Get Product By Criteria
- Link Product By Id to Branches
- Update Product By Id
- Link Product By Id to Production Line
- Delete Product By Id
- Delete Duplicated Products
- Category
- Unit
- Contact
- Payment
- Setup
- Config
- Settings
- Cart
- Ticket
- Coupon
- Checkout
- Survey
- Truncate Collection ListDELETE
- Fix Product AttributesPUT
- Files
get roles
GET
{{host_user}}/roles
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '{{host_user}}/roles?query={"capabilities":{"$in": ["6790c5ef9e5c31f77fc0418e"]}}' \
--header 'x-client: {{client}}' \
--header 'x-access-token;'
Response Response Example
{
"roles": [
{
"reserved": false,
"capabilities": [
"6790c62e573675dcc48b9c70",
"6790c60e6b4cb01518ab428d",
"6790c5ef9e5c31f77fc0418e",
"6790c5b29e5c311b58c0417e"
],
"_id": "6790dae9701ff0e096faa28d",
"label": "Lead Manager",
"name": "leadManager",
"createdBy": "676bac072ae885370fd845e9",
"__v": 0,
"id": "6790dae9701ff0e096faa28d"
}
],
"pagination": {
"totalPages": 1,
"perPage": 40,
"totalCount": 1
}
}
Request
Authorization
API Key
Add parameter in header
x-access-token
Example:
x-access-token: ********************
or
Query Params
query
stringÂ
required
Example:
{"capabilities":{"$in": ["6790c5ef9e5c31f77fc0418e"]}}
Header Params
x-client
stringÂ
required
Example:
{{client}}
Responses
🟢200200 with query
application/json
Body
roles
array [object {8}]Â
required
reserved
booleanÂ
optional
capabilities
array[string]
optional
_id
stringÂ
optional
label
stringÂ
optional
name
stringÂ
optional
createdBy
stringÂ
optional
__v
integerÂ
optional
id
stringÂ
optional
pagination
objectÂ
required
totalPages
integerÂ
required
perPage
integerÂ
required
totalCount
integerÂ
required
Modified at 2025-04-02 09:10:35