curl --request POST \
--url https://api.example.com/cabinet/admin/rbac/policies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"effect": "<string>",
"resource": "<string>",
"description": "<string>",
"role_id": 123,
"priority": 0,
"conditions": {},
"actions": [
"<string>"
]
}
'{
"id": 123,
"name": "<string>",
"priority": 123,
"effect": "<string>",
"resource": "<string>",
"is_active": true,
"description": "<string>",
"role_id": 123,
"role_name": "<string>",
"conditions": {},
"actions": [
"<string>"
],
"created_by": 123,
"created_at": "2023-11-07T05:31:56Z"
}Create a new access policy (ABAC rule).
curl --request POST \
--url https://api.example.com/cabinet/admin/rbac/policies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"effect": "<string>",
"resource": "<string>",
"description": "<string>",
"role_id": 123,
"priority": 0,
"conditions": {},
"actions": [
"<string>"
]
}
'{
"id": 123,
"name": "<string>",
"priority": 123,
"effect": "<string>",
"resource": "<string>",
"is_active": true,
"description": "<string>",
"role_id": 123,
"role_name": "<string>",
"conditions": {},
"actions": [
"<string>"
],
"created_by": 123,
"created_at": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Create a new access policy.
Successful Response
Access policy response.