Permissions
Use security endpoint to manage permissions and security settings in the system programmatically. Permissions can be created and added to resource actions to define granular permission control of what users can do in the system
OK
GET /v1/permissions HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
[
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"PermissionGroupUid": "123e4567-e89b-12d3-a456-426614174000",
"PermissionName": "text",
"Description": "text"
}
]
Representing a permission in the system
Unique id of permission
Uid of group to place permission in
Name of permission
Description of permission
OK
POST /v1/permissions HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 151
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"PermissionGroupUid": "123e4567-e89b-12d3-a456-426614174000",
"PermissionName": "text",
"Description": "text"
}
OK
No content
Representing a permission in the system
Unique id of permission
Uid of group to place permission in
Name of permission
Description of permission
OK
PUT /v1/permissions HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 151
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"PermissionGroupUid": "123e4567-e89b-12d3-a456-426614174000",
"PermissionName": "text",
"Description": "text"
}
OK
No content
OK
Not Found
GET /v1/permissions/{uid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"PermissionGroupUid": "123e4567-e89b-12d3-a456-426614174000",
"PermissionName": "text",
"Description": "text"
}
Represents a group of permissions
Unique id of permission group
Name of permission group
OK
POST /v1/permissiongroups HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 60
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Name": "text"
}
OK
No content
Represents a group of permissions
Unique id of permission group
Name of permission group
OK
PUT /v1/permissiongroups HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 60
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Name": "text"
}
OK
No content