Update Customer Role with Permissions
The Update Permissions of Customer Specific Role API request overrides the permissions of a customer specific role with the request body. The request body must contain the particular Customer Specific Role Permissions object.
Request Type | PUT |
URL | {oauth_uri}/customers/{customerId}/roles/permissions/{roleName} |
Parameters |
customerID - Use your unique, valid Customer ID roleName - Use your customer-specific role name |
Access | - |
Response
JSON of successfully updated role permission object.
Updating Permissions by Role Name
Request
PUT {oauth_uri}/customers/TestCustomer/roles/permissions/ROLE_RIQ_DEV
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"
]
}
]
}
]
}