Roles
Update role
PATCH
/
roles
/
{id}
Copy
curl --request PATCH \
--url https://api.identety.dev/roles/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "Content Manager",
"description": "Can manage all content and users",
"is_system": false
}'
Copy
{
"id": "uuid-123",
"name": "admin_role",
"description": "Administrator role with full access",
"is_system": false,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Authorizations
Path Parameters
Body
application/json
Response
200
application/json
Role updated successfully
The response is of type object
.
Copy
curl --request PATCH \
--url https://api.identety.dev/roles/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "Content Manager",
"description": "Can manage all content and users",
"is_system": false
}'
Copy
{
"id": "uuid-123",
"name": "admin_role",
"description": "Administrator role with full access",
"is_system": false,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.