- Admin API
- Auth
- Catalog
- Sales
- Purchases
- CMS
- User Management
- Roles
- Permissions
- Users
- GET All FeaturesGET
- Settings
- Ecommerce API
- Products
- Pages
- Shop
- Account
- Cart
- GET CompanyGET
- GET CountriesGET
PUT Role
Developing
GET
{{url}}api/v1/admin/roles/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://ecompulse.test/api/v1/admin/roles/6' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "POS User"
}'
Response Response Example
{
"status": "success",
"message": "Role retrieved successfully",
"data": {
"id": 6,
"name": "pos user",
"is_view": 1,
"is_delete": 1,
"status": 1
}
}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
integerÂ
required
Example:
6
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Body Params application/json
object {0}
Examples
Responses
🟢200Success
application/json
Body
object {0}
Modified at 2024-05-27 05:14:16