Gateway GRPC

Update a role

patch/v2/organisations/{organisation_id}/roles/{role_id}

Request

  • Base URL
    https://api.cautio.in (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

organisation_idstring required
role_idstring required

Request body

namestring required

Name of the role

descriptionstring required

Description of the role

permission_idsstring[] required

List of permission ids

level0 | 1

Visibility level of the role

Example request

{
  "name": "Admin",
  "description": "Admin role",
  "permission_ids": [
    "a9a7e4e8-3e4b-4b1a-8e4a-4a2a4a2a4a2a"
  ],
  "level": 1
}

Response

successboolean required

Success status

messagestring required

Response Message

Changes

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