POST
/
auth
/
roles
/
{id}
/
permissions
curl --request POST \
  --url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/auth/roles/{id}/permissions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "permission_id": "<string>"
}'
{
  "message": "<string>",
  "success": true,
  "content": {
    "permission": {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "action": "GET",
      "resource": "<string>",
      "active": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "modified_at": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

role ulid

Body

application/json
permission_id
string

Response

200 - application/json
OK
message
string
success
boolean
content
object