- Management APIs
- Access Requests - V2
- okta.accessRequests.condition.manage
- ACCESS_REQUESTS_ADMIN
Updates the request condition
Conditions can be updated while their status is ACTIVE, INACTIVE or INVALID.
An update will be rejected if it would lead to the condition entering an INVALID status.
While an update request body may not contain status, a successful update request condition operation will always result in the condition entering ACTIVE or INACTIVE status.
Any requesterSettings, accessScopeSettings in the update request body will be validated against the resource's current request settings.
Unique identifier for the resource in Okta instance ID format or ORN format
Unique identifier for the approval sequence
curl -i -X PATCH \
'https://okta-subdomain.pixtulate.com/governance/api/v2/resources/{resourceId}/request-conditions/rcord7d69lUIn7u5D1d5' \
-H 'Content-Type: application/json' \
-d '{
"name": "Application | Permanent | Everyone",
"description": "A request condition allowing everyone to request permanent access to an application",
"approvalSequenceId": "61eb0f06c462d20007f051ac",
"requesterSettings": {
"type": "EVERYONE"
},
"accessScopeSettings": {
"type": "RESOURCE_DEFAULT"
},
"priority": 0
}'A successful request condition patch response
Unique identifier for the object
The id of the Okta user who created the resource
The ISO 8601 formatted date and time when the resource was created
The ISO 8601 formatted date and time when the object was last updated
The id of the Okta user who last updated the object
status indicating if this condition is active or not. Default status is INACTIVE
The priority of the condition. The smaller the number, the higher the priority. The highest priority is 0. A new condition will default to the lowest priority.
{ "id": "rcob0oNGTSWTBKOLGLNR", "name": "Default resource access", "description": "This is a condition for requesting default resource access", "approvalSequenceId": "61eb0f06c462d20007f051ac", "requesterSettings": { "type": "EVERYONE" }, "accessScopeSettings": { "type": "RESOURCE_DEFAULT" }, "accessDurationSettings": { "type": "ADMIN_FIXED_DURATION", "duration": "P2W" }, "priority": 0, "status": "ACTIVE", "created": "2019-08-24T14:15:22Z", "createdBy": "00ub0oNGTSWTBKOLGLNR", "lastUpdated": "2019-08-24T14:15:22Z", "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR", "_links": { "self": { … } } }