Replace role
Replaces all attributes of an existing role.
Authorization: Requires admin role.
Note: scope and scopeId cannot be changed after creation.
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 put/v2/scim2/Roles/{roleId}
curl https://api.consentio.co/v2/scim2/Roles/role_purchasing_manager \
--request PUT \
--header 'Content-Type: application/scim+json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"schemas": [
"urn:consentio:params:scim:schemas:Role:1.0"
],
"externalId": "idp-role-123",
"displayName": "Purchasing Manager",
"description": "National buyer with full product access",
"scope": "organisation",
"scopeId": "org_abc123",
"permissions": [
"products:read",
"products:write",
"orders:read",
"orders:write"
],
"attributes": {
"additionalProperty": [
""
]
}
}'
{
"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.154Z",
"lastModified": "2026-11-11T10:14:32.154Z",
"location": "https://example.com"
}
}