Creates a new role.
Creates a new role.
Subscription Level
This endpoint requires the Standard plan or higher.Required Permissions
The user must be an admin or haveworkspace-manage-config:write
permissions.Headers
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
The name of the role. Must be unique.
Whether this is the admin role. Only one role can be the admin role.
Whether this is the guest role. Only one role can be the guest role.
Response
OK
The name of the role. Must be unique.
Whether this is the admin role. Only one role can be the admin role.
Whether this is the guest role. Only one role can be the guest role.
The id of the role.
Whether this role is one of the preset roles. Preset roles can be edited, archived and deleted.
Whether the role has been archived.
The id of the user who created this role.
The date this role was created.
The id of the user who updated this role.
The date this role was last modified.