Roles

Create a role

Create a role for the organization.

post/roles

Request

  • Base URL
    https://public.escape.tech/v3
  • Auth
    API key in header X-ESCAPE-API-KEY

Request body

namestring required

The name of the role

permissionsstring[] required

The permissions of the role

Example request

{
  "name": "My super role",
  "permissions": [
    "EDIT_ASSETS"
  ],
  "bindings": [
    {
      "roleId": "00000000-0000-0000-0000-000000000000",
      "userId": "00000000-0000-0000-0000-000000000000"
    }
  ]
}

Response

OK

idstring uuid required

The id of the role

namestring required

The name of the role

permissionsstring[] required

The permissions of the role

createdAtstring date-time required

The date and time the role was created

Changes

No recorded changes to this operation across all 1 revision of this API.