v1

latestOpenAPI 3.1.02026-07-24318141.2 MB

Patch Update a Role

Used to add permissions, and update the key/name of the role. Patch Update adds the supplied permissions to existing ones in the supplied role.

patch/roles/{id}

Path parameters

idstring required

id of the role to be updated

Request body

namestring

updated name for the role

keystring

new key for the role

permission_idsstring[]

permissions_ids to be added

permission_keysstring[]

permission_keys to be added

role_template_keystring

key of the role template, permissions of which need to be added to the role

role_template_idstring

id of the role template, permissions of which need to be added to the role

Response

200

idstring
urlstring
client_idstring
namestring
descriptionstring
keystring
created_atstring
is_activeboolean

Example response

{
  "id": "78d3b9f7-46d2-450c-b41c-293ca460cdb2",
  "url": "https://cf-blast-dig.livelikecdn.com/api/v1/rbac/roles/78d3b9f7-46d2-450c-b41c-293ca460cdb2/",
  "client_id": "lom9db0XtQUhOZQq1vz8QPfSpiyyxppiUVGMcAje",
  "name": "yash01role01",
  "key": "yash-temp-role01",
  "permissions": [
    {
      "id": "5e009781-c6fc-4e80-afb2-8e67412548f5",
      "url": "https://cf-blast-dig.livelikecdn.com/api/v1/rbac/permissions/5e009781-c6fc-4e80-afb2-8e67412548f5/",
      "name": "Create Alert",
      "key": "create-alert",
      "created_at": "2023-12-29T00:15:49.133000Z"
    }
  ],
  "created_at": "2024-02-20T08:29:36.309688Z",
  "is_active": true
}