Assign Permissions for an existing Customer-specific Role
The Assign Permissions For Existing Customer Specific Role API request creates permissions for an existing Customer Specific Roles. The request body is an array with one or more Customer specific Roles Permissions object.
Request Type | POST |
URL | {oauth_uri}/customers/{customerId}/roles/permissions |
Parameters |
customerID - Use your unique, valid Customer ID |
Access | - |
Response
JSON Array of successfully created roles permission object.
Assigning Permissions by Role Name
Request
POST {oauth_uri}/customers/TestCustomer/roles/permissions
Headers: Authorization: Bearer <Access-Token>
Request Body:
[{
"roleName": "ROLE_RIQ_DEV",
"servicePermissions": [
{
"id": "Auth",
"resourcePermissions": [
{
"id": "globalRoles",
"allowedPrivileges": [
"READ"
]
},
{
"id": "reltioServices",
"allowedPrivileges": [
"READ"
]
},
{
"id": "monitoring",
"allowedPrivileges": [
"READ"
]
},
{
"id": "customer",
"allowedPrivileges": [
"READ",
"DELETE",
"CREATE",
"UPDATE"
]
}
]
}
]
}]
Response
[{
"roleName": "ROLE_RIQ_DEV",
"servicePermissions": [
{
"id": "Auth",
"resourcePermissions": [
{
"id": "globalRoles",
"allowedPrivileges": [
"READ"
]
},
{
"id": "reltioServices",
"allowedPrivileges": [
"READ"
]
},
{
"id": "monitoring",
"allowedPrivileges": [
"READ"
]
},
{
"id": "customer",
"allowedPrivileges": [
"READ",
"DELETE",
"CREATE",
"UPDATE"
]
}
]
}
]
}]