Herald
OpenapiRole definitions

Assign permission to role

POST
/api/roles/define/{roleId}/permissions

Path Parameters

roleId*string

Role ID

Formatuuid

Request Body

application/json
  1. body
permissionId*string
Formatuuid

Response Body

Permission assigned to role

Example Request
curl -X POST 'https://example.com/api/roles/define/497f6eca-6276-4993-bfeb-53cbbbba6f08/permissions' \
  -H 'Content-Type: application/json' \
  -d '{
  "permissionId": "d5850203-7a23-4b4d-8f1b-99d510b781d3"
}'
Example Response
Empty