POST
/
api
/
v3
/
roles
Create role
curl --request POST \
  --url https://apix.us.amity.co/api/v3/roles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "roleId": "<string>",
  "displayName": "<string>",
  "permissions": [
    "<string>"
  ]
}'
{
  "status": "<string>",
  "data": [
    {
      "roleId": "<string>",
      "displayName": "<string>",
      "updatedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "permissions": [
        "<string>"
      ],
      "isDeleted": false
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

information of a role to be created.

The body is of type object.

Response

200
application/json

Role Information

The response is of type object.