Roles

Update custom role

Changed on

Update a custom role's name, description, or permission set. System roles cannot be edited — return 400 Bad Request.

Editing a role applies to every member and API key currently using it.

patch/api/v1/roles/{id}

Request

  • Base URL
    https://api.rafftechnologies.com
  • URL
    https://api.rafftechnologies.com/api/v1/roles/{id}
  • Auth
    API key in header X-API-Key

Path parameters

idstring uuid required

Role ID (UUID)

Request body

namestring
descriptionstring
permissionsstring[]

Response

Role updated

successboolean

Example response

{
  "data": {
    "name": "Operator",
    "slug": "operator"
  }
}

Changes