automation-cloud
latest
false
UiPath logo, featuring letters U and I in white

Automation Cloud API guide

Last updated Jan 30, 2026

Update rule

Updates an existing SAML provisioning rule.

Endpoint

PUT /api/Rule

Request body

FieldTypeRequiredDescription
ruleIdIntegerYesThe unique identifier of the rule to update
partitionGlobalIdGUIDYes

The 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'
--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"
}
{
  "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\":[]}"
}
{
  "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
  • Endpoint
  • Request body
  • Request headers
  • Responses
  • Example request
  • Error responses

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2026 UiPath. All rights reserved.