v1

latestOpenAPI 3.1.02026-07-24318141.2 MB

Create a Role

post/roles/

Request body

keystring required

key of the role to be created

namestring required

name of the role to be created

role_template_keystring

key of the role template to add permissions from.

permission_idsstring[]

Array of permission_ids to add to the role

permission_keysstring[]

Array of permission_keys to add to the role

Response

201

idstring
urlstring
client_idstring
namestring
descriptionstring
keystring
created_atstring
is_activeboolean

Example response

{
  "id": "8c3d8a63-ef55-4268-b2a4-517a4c15cbb7",
  "url": "https://cf-blast-dig.livelikecdn.com/api/v1/rbac/roles/8c3d8a63-ef55-4268-b2a4-517a4c15cbb7/",
  "client_id": "lom9db0XtQUhOZQq1vz8QPfSpiyyxppiUVGMcAje",
  "name": "yashtemplrole03",
  "key": "yash-temp-role03",
  "permissions": [
    {
      "id": "f30dec26-5212-4fa1-89f7-ff825db07846",
      "url": "https://cf-blast-dig.livelikecdn.com/api/v1/rbac/permissions/f30dec26-5212-4fa1-89f7-ff825db07846/",
      "name": "Publish Twitter Spotlight",
      "key": "publish-twitter-spotlight",
      "created_at": "2023-12-29T00:15:49.123000Z"
    }
  ],
  "created_at": "2024-02-29T11:18:43.782290Z",
  "is_active": true
}