Partial update role
Partially updates a role using SCIM PATCH operations.
Authorization: Requires admin role.
Supported Operations:
- Add/remove/replace permissions
- Update displayName, description
Note: scope and scopeId cannot be changed.
Path Parameters
- Type: stringrole
Id requiredRole's SCIM ID
Body
required
application/json
Responses
- application/scim+json
- application/scim+json
- application/scim+json
- application/scim+json
Request Example for patch/v2/scim2/Roles/{roleId}
curl https://api.consentio.co/v2/scim2/Roles/role_purchasing_manager \
--request PATCH \
--header 'Content-Type: application/scim+json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "add",
"path": "permissions",
"value": [
"reports:export"
]
}
]
}'
{
"schemas": [
"string"
],
"id": "role_purchasing_manager",
"externalId": "idp-role-123",
"displayName": "Purchasing Manager",
"description": "Manager with full purchasing access",
"scope": "organisation",
"scopeId": "org_abc123",
"permissions": [
"orders:approve",
"orders:read",
"orders:write",
"products:read",
"products:write"
],
"attributes": {
"additionalProperty": [
"string"
]
},
"meta": {
"resourceType": "Role",
"created": "2026-11-11T10:14:32.227Z",
"lastModified": "2026-11-11T10:14:32.227Z",
"location": "https://example.com"
}
}