Skip to content

RolesController_updateRole

PATCH
/roles/{id}
curl --request PATCH \
--url https://example.com/roles/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--header 'x-tenant-schema: example' \
--cookie session=<session> \
--data '{ "name": "example" }'
id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
x-tenant-schema
required
string

The tenant of the request.

Media typeapplication/json
object
name
required
string
>= 3 characters <= 128 characters
Examplegenerated
{
"name": "example"
}

The updated role, as far as the caller may read it.

Media typeapplication/json
object
id
string
name
string
Examplegenerated
{
"id": "example",
"name": "example"
}