Skip to main content
POST
/
v1
/
rbac
/
bulk
Create multiple permissions
curl --request POST \
  --url https://api.example.com/v1/rbac/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "actor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "user",
    "rec_type": "<string>",
    "permission": "<string>",
    "rec_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
]
'
{
  "code": "common.invalid_input",
  "message": "Invalid input data provided"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
actor_id
string<uuid>
required
type
enum<string>
required
Available options:
user,
role
rec_type
string
required
permission
string
required
rec_id
string<uuid>

Response

Permissions created successfully