Skip to main content
POST
/
v2
/
RoleLinkPolicy
Link policy to role
curl --request POST \
  --url http://localhost:3000/v2/RoleLinkPolicy \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "roleid": 123,
  "rolename": "<string>",
  "policyid": 123,
  "policyname": "<string>",
  "request_metadata": {}
}
'
{
  "status": "ok"
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
roleid
integer

ID of the role

rolename
string

Name of the role

policyid
integer

ID of the policy

policyname
string

Name of the policy

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Policy linked to role successfully

status
string
Example:

"ok"