Skip to main content
PUT
/
v2
/
app-resource-entitlements
/
{id}
Update App Resource Entitlement
curl --request PUT \
  --url https://public.api.serval.com/v2/app-resource-entitlements/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "provisioningMethod": "<string>",
  "requestsEnabled": true,
  "accessPolicyId": "<string>",
  "linkedEntitlementIds": [
    "<string>"
  ],
  "manualProvisioningAssignees": [
    {
      "assigneeId": "<string>",
      "assigneeType": "MANUAL_PROVISIONING_ASSIGNEE_TYPE_UNSPECIFIED"
    }
  ],
  "provisioningStrategy": {
    "builtinWorkflow": {},
    "customWorkflow": {
      "provisionWorkflowId": "<string>",
      "deprovisionWorkflowId": "<string>"
    },
    "linkedEntitlements": {
      "linkedEntitlementIds": [
        "<string>"
      ]
    },
    "manual": {
      "assignees": [
        {
          "assigneeId": "<string>",
          "assigneeType": "MANUAL_PROVISIONING_ASSIGNEE_TYPE_UNSPECIFIED"
        }
      ]
    }
  }
}
'
{
  "data": {
    "id": "<string>",
    "resourceId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "provisioningMethod": "<string>",
    "requestsEnabled": true,
    "accessPolicyId": "<string>",
    "linkedEntitlementIds": [
      "<string>"
    ],
    "manualProvisioningAssignees": [
      {
        "assigneeId": "<string>",
        "assigneeType": "MANUAL_PROVISIONING_ASSIGNEE_TYPE_UNSPECIFIED"
      }
    ],
    "provisioningStrategy": {
      "builtinWorkflow": {},
      "customWorkflow": {
        "provisionWorkflowId": "<string>",
        "deprovisionWorkflowId": "<string>"
      },
      "linkedEntitlements": {
        "linkedEntitlementIds": [
          "<string>"
        ]
      },
      "manual": {
        "assignees": [
          {
            "assigneeId": "<string>",
            "assigneeType": "MANUAL_PROVISIONING_ASSIGNEE_TYPE_UNSPECIFIED"
          }
        ]
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the entitlement.

Body

application/json
name
string

The name of the entitlement.

description
string

A description of the entitlement.

provisioningMethod
string
deprecated

The provisioning method for the entitlement.

requestsEnabled
boolean

Whether requests are enabled for the entitlement.

accessPolicyId
string | null

The default access policy for the entitlement (optional).

linkedEntitlementIds
string[]
deprecated

The IDs of entitlements that must be provisioned before this entitlement can be provisioned (optional).

manualProvisioningAssignees
ManualProvisioningAssignee · object[]
deprecated

The manual provisioning assignees (users and groups) for this entitlement (optional, only used when provisioning_method is "manual").

provisioningStrategy
provisioning_strategy · object

Preferred provisioning configuration. Exactly one strategy should be set.

Response

Success

data
data · object

The updated entitlement.