Skip to navigation

Creates a workspace role.

Creates a workspace role. The role starts with the submitted settings.

Subscription Level
This endpoint requires the Standard plan or higher.
Required Permissions
The user must be an admin or have workspace-manage-config:write permissions.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

The role form payload.
namestringRequired>=1 character
The name of the role. Must be unique.
isAdminRolebooleanOptional
Whether this is the admin role. Only one role can be the admin role.
isGuestRolebooleanOptional
Whether this is the guest role. Only one role can be the guest role.

Response

OK
namestring>=1 character
The name of the role. Must be unique.
isAdminRolebooleanOptional
Whether this is the admin role. Only one role can be the admin role.
isGuestRolebooleanOptional
Whether this is the guest role. Only one role can be the guest role.
idstringOptionalformat: "uuid"
The id of the role.
isAgentRolebooleanOptional

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

isPresetbooleanOptional
Whether this role is one of the preset roles. Preset roles can be edited, archived and deleted.
isArchivedbooleanOptional
Whether the role has been archived.
createdBystringOptionalformat: "uuid"
The id of the user who created this role.
createdOnstringOptionalformat: "date-time"
The date this role was created.
updatedBystringOptionalformat: "uuid"
The id of the user who updated this role.
updatedOnstringOptionalformat: "date-time"
The date this role was last modified.

Errors

400
Bad Request Error