Skip to main content
PATCH
/
v1
/
roles
/
{id}
Update role
curl --request PATCH \
  --url http://localhost:3000/v1/roles/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "<string>"
}
'
{
  "success": true,
  "role": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "is_system": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

id
string<uuid>
required

Body

application/json
description
string
Maximum string length: 500

Response

Role updated successfully

success
boolean
required
role
object
required