v1

latestOpenAPI 3.1.02026-08-066984441.1 MB
roles

Creates a new role with specified permissions.

<Note title="Subscription Level" icon="layer-group">This endpoint requires the Standard plan or higher.</Note>

<Check title="Required Permissions" icon="key">The user must be an admin or have workspace-manage-config:write permissions.</Check>

post/roles

Headers

Authorizationstring required

Bearer authentication

Request body

namestring required

The name of the role. Must be unique.

isAdminRoleboolean

Whether this is the admin role. Only one role can be the admin role.

isGuestRoleboolean

Whether this is the guest role. Only one role can be the guest role.

Response

OK

namestring required

The name of the role. Must be unique.

isAdminRoleboolean

Whether this is the admin role. Only one role can be the admin role.

isGuestRoleboolean

Whether this is the guest role. Only one role can be the guest role.

idstring uuid

The id of the role.

isAgentRoleboolean

Whether this is a retained role from the legacy agent-as-user model. The role cannot be modified.

isPresetboolean

Whether this role is one of the preset roles. Preset roles can be edited, archived and deleted.

isArchivedboolean

Whether the role has been archived.

createdBystring uuid

The id of the user who created this role.

createdOnstring date-time

The date this role was created.

updatedBystring uuid

The id of the user who updated this role.

updatedOnstring date-time

The date this role was last modified.