Update Roles API
Welcome to the documentation for the Update Roles API. This API updates a role.
Base URL
{baseURL}/v1/accounts/:id/settings/roles/:roleId | PATCH
Request Payload
Field | Type | Source | Required | Description |
---|---|---|---|---|
name | string | body | ✅ Yes | Role name |
Sample Request
curl -X PATCH {baseURL}/v1/accounts/:id/settings/roles/:roleId \
-H 'Content-Type: application/json' \
-d '{
"name": "Admins"
}'
Sample 400 Response
{
"message": "Role already exist for this account",
"success": false,
"errors": {}
}