Skip to main content
POST
Create role

Authorizations

x-api-key
string
header
required

Body

application/json
name
string
required

Role name will be converted to snake_case automatically

Example:

"Content Editor"

description
string
Example:

"Can manage and publish content"

is_system
boolean

Whether this is a system role. Cannot be set to true manually.

Example:

false

Response

Role created successfully.

id
string
required
Example:

"uuid-123"

name
string
required
Example:

"admin_role"

description
string
required
Example:

"Administrator role with full access"

is_system
boolean
required
Example:

false

created_at
string<date-time>
required
updated_at
string<date-time>
required