Create a role

Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

Creates a new role.

post
Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.

Example: YOUR_AUTH_KEY
Body

This class is used when creating or updating a Role.

codestring · min: 1Required

The code of the Role.

Example: EXAMPLE
namestring · min: 1Required

The name of the Role.

Example: Example
descriptionstring · nullableOptional

The description of the Role.

Example: Description
tagsstring · nullableOptional

The tags of the Role.

Example: #Example
Responses
post
/api/v1/roles

Last updated