Skip to main content

Update rule

Updates an existing SAML provisioning rule.

Endpoint

PUT /api/Rule

Request body

FieldTypeRequiredDescription
ruleIdIntegerYesThe unique identifier of the rule to update
partitionGlobalIdGUIDYesThe global identifier of the organization. For steps on retrieving partitionGlobalId, refer to Retrieving partitionGlobalId for API use.
nameStringYesUpdated name of the rule
descriptionStringNoUpdated description
enabledBooleanYesWhether the rule is active
definitionStringNoThe rule definition

Request headers

--header 'Authorization: Bearer {access_token}'
--header 'Content-Type: application/json'

Responses

note

The Update Rule endpoint does not return a RuleDto. Assigned groups are not returned.

{
"id": 3685,
"name": "Test",
"description": "Test",
"enabled": true,
"partitionId": 28728,
"definition": "{\"GroupsToAssign\":[\"4d161738-7204-4794-b839-8f7fed28366c\"],\"Conditions\":[]}",
"creationTime": "2026-01-29T16:09:41.7203623",
"lastModificationTime": "2026-01-29T16:11:18.691478Z"
}

Example request

{
"ruleId": 3685,
"partitionGlobalId": "{{prtId}}",
"name": "Test",
"description": "Test",
"enabled": true,
"definition": "{\"GroupsToAssign\":[\"4d161738-7204-4794-b839-8f7fed28366c\"],\"Conditions\":[]}"
}

Error responses

  • 400 Bad Request: Invalid request body or validation errors
  • 401 Unauthorized: Missing or invalid authentication token
  • 403 Forbidden: Insufficient permissions
  • 404 Not Found: Organization or rule does not exist