The Entitlements API allows you to manage entitlements and their values. An entitlement is a permission that allows users to take specific actions within a resource, such as an app. See Entitlement Management in the product documentation.
Note: An app must have entitlement management enabled before it can be used as an entitlement resource. See Enable Entitlement management in the product documentation.
- okta.governance.entitlements.manage
- APP_ADMIN
Creates a new entitlement
Note: An HTTP 404 Not Found error is returned for app entitlements that aren't enabled with entitlement management. See Enable Entitlement management.
The writable attributes of an entitlement
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 data type of the entitlement property
| Enum Value | Description |
|---|---|
| string | The entitlement property is a single value. |
| array | The entitlement property is multivalued. |
curl -i -X POST \
https://okta-subdomain.pixtulate.com/governance/api/v1/entitlements \
-H 'Content-Type: application/json' \
-d '{
"name": "License Entitlement",
"externalValue": "license_entitlement",
"description": "Some license entitlement",
"parent": {
"externalId": "0oafxqCAJWWGELFTYASJ",
"type": "APPLICATION"
},
"multiValue": true,
"dataType": "string",
"values": [
{
"name": "value1",
"description": "description for value1",
"externalValue": "value_1"
},
{
"name": "value2",
"description": "description for value2",
"externalValue": "value_2"
}
]
}'A successful entitlement creation 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, "required": false, "dataType": "string", "values": [ { … }, { … } ], "_links": { "self": { … }, "values": { … } }, "metadata": { "total": 2 } }