Updates a grant expiry date.
You can only update the scheduleSettings.expirationDate property for a grant.
- Update grant's expiration date |tooltip| Update grant's expiration date.
- Update grant's expiration date and user timezone |tooltip| Update the grant expiry date (in UTC time) and save the user time zone
curl -i -X PATCH \
'https://okta-subdomain.pixtulate.com/governance/api/v1/grants/{grantId}' \
-H 'Content-Type: application/json' \
-d '{
"id": "0ggb0oNGTSWTBKOLGLNR",
"scheduleSettings": {
"expirationDate": "2022-11-24T14:15:22Z"
}
}'A successful grant patch operation
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
Type of grant. Reconciliation creates an IMPORT grant to record an entitlement that the app reported, but that Okta wasn't already governing.
The entitlement bundle id
The Okta user in ORN format
The action to be taken for a grant
The flow that triggered the grant request
| Enum Value | Description |
|---|---|
| API | The grant request was triggered from the API. |
| ACCESS_REQUEST | The grant request was triggered from an access request. |
| NONE | The grant request wasn't triggered from the API, an access request, or the Admin Console. |
| ADMIN | The grant request was triggered from the Admin Console. |
The Okta resource in ORN format
See the ORN format for supported resources.
Collection of entitlements and associated value identifiers
Scheduler specific settings applicable to a grant.
The state of the particular grant setting
{ "id": "0ggb0oNGTSWTBKOLGLNR", "created": "2022-05-24T14:15:22Z", "createdBy": "00ub0oNGTSWTBKOLGLNR", "lastUpdated": "2022-05-24T14:15:22Z", "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR", "grantType": "ENTITLEMENT-BUNDLE", "entitlementBundleId": "enbfxqCAJWWGELFTYCCC", "action": "ALLOW", "actor": "API", "targetResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ", "target": { "externalId": "0oafxqCAJWWGELFTYASJ", "type": "APPLICATION" }, "targetPrincipalOrn": "orn:okta:directory:00o11edPwGqbUrsDm0g4:users:00ub0oNGTSWTBKOLGLNR", "targetPrincipal": { "externalId": "00ub0oNGTSWTBKOLGLNR", "type": "OKTA_USER" }, "status": "ACTIVE", "scheduleSettings": { "expirationDate": "2022-11-24T14:15:22Z", "timeZone": "America/Toronto" }, "_links": { "entitlementBundle": { … }, "self": { … } } }