- okta.governance.entitlements.manage
- APP_ADMIN
Updates an entitlement name, description or a particular value property. The values array in the response contains only the updated entitlement values. No entitlement values are returned if the name and description is updated or values are only removed in the update.
The writable attributes of an entitlement.
The operation to be performed for update.
The path of the property being updated. ex - /values/{id} for REMOVE, REPLACE and /values/- for ADD for entitlement value update.
- ENTITLEMENT-VALUE
- ENTITLEMENT
- Update entitlement |tooltip| Request body for updating entitlement
- Update - add entitlement value |tooltip| Request body for adding entitlement value
- Update - remove entitlement value |tooltip| Request body for removing entitlement value
- Update - replace entitlement value |tooltip| Request body for replacing entitlement value
curl -i -X PATCH \
'https://okta-subdomain.pixtulate.com/governance/api/v1/entitlements/{entitlementId}' \
-H 'Content-Type: application/json' \
-d '[
{
"op": "ADD",
"path": "/values/-",
"value": {
"name": "value1",
"description": "description for value1",
"externalValue": "value_1"
},
"refType": "ENTITLEMENT-VALUE"
},
{
"op": "REMOVE",
"path": "/values/ent148gF8aZoRfFsh0g4",
"refType": "ENTITLEMENT-VALUE"
},
{
"op": "REPLACE",
"path": "/values/ent148gF8aZoRfFsh0g4",
"value": {
"name": "value1",
"description": "replace description for value1"
},
"refType": "ENTITLEMENT-VALUE"
},
{
"op": "ADD",
"path": "/description",
"value": "add description for entitlement",
"refType": "ENTITLEMENT"
},
{
"op": "REMOVE",
"path": "/description",
"refType": "ENTITLEMENT"
},
{
"op": "REPLACE",
"path": "/description",
"value": "replace description for entitlement",
"refType": "ENTITLEMENT"
},
{
"op": "REPLACE",
"path": "/name",
"value": "replace name for entitlement",
"refType": "ENTITLEMENT"
}
]'A successful entitlement update operation
The display name for an entitlement property
The value of an entitlement property
The description of an entitlement property
Indicates if the entitlement property can hold multiple values. If this property is true, then the dataType property is set to array.
The property that determines if the entitlement property is a required attribute
The data type of the entitlement property
| Enum Value | Description |
|---|---|
| string | The entitlement property is a single value. |
| array | The entitlement property is multivalued. |
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
The Okta resource in ORN format
See the ORN format for supported resources.
{ "id": "esp2lr1lavoGDYw5U8g6", "name": "License Entitlement", "externalValue": "license_entitlement", "description": "Some license entitlement", "created": "2022-05-24T14:15:22Z", "createdBy": "00ub0oNGTSWTBKOLGLNR", "lastUpdated": "2022-05-24T14:15:22Z", "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR", "parentResourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ", "parent": { "externalId": "0oafxqCAJWWGELFTYASJ", "type": "APPLICATION" }, "multiValue": true, "dataType": "string", "required": false, "values": [ { … }, { … } ], "_links": { "self": { … }, "values": { … } }, "metadata": { "total": 2 } }