Skip to main content
POST
/
v2
/
app-resource-entitlements
Create App Resource Entitlement
curl --request POST \
  --url https://public.api.serval.com/v2/app-resource-entitlements \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "resourceId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "provisioningMethod": "<string>",
  "requestsEnabled": true,
  "accessPolicyId": "<string>"
}'
{
  "data": {
    "id": "<string>",
    "resourceId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "provisioningMethod": "<string>",
    "requestsEnabled": true,
    "accessPolicyId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
resourceId
string

The ID of the resource.

name
string

The name of the entitlement.

description
string

A description of the entitlement.

provisioningMethod
string

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).

Response

Success

data
object

The created entitlement.

I