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": "f81bbb84-c5a7-48bb-97c9-ea5225e6e53d",
"PermissionGroupUid": "ad53d013-a9b2-4b28-89d8-f81b6368ffb3",
"PermissionName": "Create products",
"Description": "Permission required by users to be able to create new products",
"IsSystemPermission": false
},
{
"Uid": "c32a89bd-d385-4c58-8064-0c88e6edeca6",
"PermissionGroupUid": "ad53d013-a9b2-4b28-89d8-f81b6368ffb3",
"PermissionName": "Update products",
"Description": "Permission required by users to be able to update products",
"IsSystemPermission": false
}
]Representing a permission in the system
Unique id of permission
Uid of group to place permission in
Name of permission
Description of permission
Is system permission (readonly)
OK
No content
POST /v1/permissions HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 238
{
"Uid": "6b6e769c-576c-420a-83b6-b9b0a27be82c",
"PermissionGroupUid": "aa4e6808-5ff3-4a48-9aff-6bc57a7e40e2",
"PermissionName": "Manage colors",
"Description": "Allows users to manage values in the colors global list",
"IsSystemPermission": false
}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
Is system permission (readonly)
OK
No content
PUT /v1/permissions HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 238
{
"Uid": "11308777-7bca-412a-a56d-1bebb68d6b91",
"PermissionGroupUid": "c4087119-4a62-496c-9426-fc0a4d152a98",
"PermissionName": "Manage colors",
"Description": "Allows users to manage values in the colors global list",
"IsSystemPermission": false
}OK
No content
OK
Not Found
GET /v1/permissions/{uid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"Uid": "87aef2c9-2a4c-45f3-b489-b13f1bd0d956",
"PermissionGroupUid": "92215ced-adef-4b03-b93a-5593dd647482",
"PermissionName": "Create products",
"Description": "Permission required by users to be able to create new products",
"IsSystemPermission": false
}OK
GET /v1/permissiongroups HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
[
{
"Uid": "32416003-8511-4213-bb91-1b409cdb6a7b",
"Name": "Products",
"IsSystemPermissionGroup": false
},
{
"Uid": "892d4e10-cd48-4e63-a484-5efc23c3cc0a",
"Name": "Variants",
"IsSystemPermissionGroup": false
}
]Represents a group of permissions
Unique id of permission group
Name of permission group
Is system permission group (readonly)
OK
No content
POST /v1/permissiongroups HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 111
{
"Uid": "93afac58-f196-482a-9586-817098ed7388",
"Name": "Global list permissions",
"IsSystemPermissionGroup": false
}OK
No content
Represents a group of permissions
Unique id of permission group
Name of permission group
Is system permission group (readonly)
OK
No content
PUT /v1/permissiongroups HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 111
{
"Uid": "0134e7e1-bbaf-4858-834d-3f2a2c7b2602",
"Name": "Global list permissions",
"IsSystemPermissionGroup": false
}OK
No content
OK
Not Found
GET /v1/permissiongroups/{uid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"Uid": "b20fbf01-e8aa-4140-98c5-8c919e355e1a",
"Name": "Products",
"IsSystemPermissionGroup": false
}The unique id of the permission group
OK
No content
DELETE /v1/permissiongroups/{uid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
No content
Last updated