Unify and manage your data

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.

Table 1. Update Permissions of Customer Specific Role
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"
                        ]
                    }
                ]
            }
        ]
 }
            
Note: While making the API call, use your unique Customer ID and specify the name of the role for which you would like to update the permissions.

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"
                       ]
                   }
               ]
           }
       ]
}