Skip to content

RolesController_createRole

POST
/roles
curl --request POST \
--url https://example.com/roles \
--header 'Content-Type: application/json' \
--header 'idempotency-key: example' \
--header 'x-tenant-schema: example' \
--cookie session=<session> \
--data '{ "name": "example" }'
idempotency-key
required
string
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 created role, as far as the caller may read it.

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