Skip to content

Partially update an access request condition template

Request

OAuth 2.0 scope:
  • okta.accounts.manage

Partially updates an access request condition template by templateId. Omitted fields are left unchanged. Fields explicitly set to null are removed. Nested objects are deep-merged recursively. Arrays are replaced wholesale.

Security
OAuth2(Required scopes: okta.accounts.manageokta.accounts.read)
Path
accountIdstringrequired

The id of the Aerial account

templateIdstringrequired

The id of the access request condition template

Bodyapplication/merge-patch+jsonrequired
resourcesArray of objects or null
requestConditionobject or null(request-condition-full)

Partial request condition object. Only provided fields are merged into the existing condition. Set a field to null to remove it.

curl -i -X PATCH \
  'https://aerial-apac.okta.com/{accountId}/governance/api/v1/request-condition-templates/{templateId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/merge-patch+json' \
  -d '{
    "requestCondition": {
      "name": "updatedConditionName",
      "accessDurationSettings": {
        "duration": "P60D"
      }
    }
  }'

Responses

Success

Bodyapplication/json
idstring

The ID of the access request condition template

resourcesArray of objects(resources)
applyStatusstringrequired
Enum:"APPLIED""APPLYING""ERROR""NOT_APPLIED""REMOVING""APPLIED_WITH_CHANGES"
requestConditionobject(request-condition-full)

A condition delineates the criteria governing access requests, specifying the requester's identity, the permitted access scope, and the manner in which access can be requested.

Response
{ "id": "rcom02pucExS1C3t10g3", "applyStatus": "NOT_APPLIED", "resources": [ { … } ], "requestCondition": { "id": "rcom02pucExS1C3t10g3", "lastUpdated": "2025-12-22T19:15:53Z", "accessDurationSettings": { … }, "lastUpdatedBy": "pca88daNl4vHU7C5z0g4", "approvalSequenceId": "12ab2db568c7c300079fefd0", "createdBy": "00u87v4EURdm7FO800g4", "_links": { … }, "created": "2025-10-08T17:52:24Z", "requesterSettings": { … }, "name": "kkpjdtag", "accessScopeSettings": { … }, "priority": 0, "status": "INACTIVE" } }