Skip to main content
POST
/
entitlements
Create Entitlement
curl --request POST \
  --url https://dev-entitlements-api.spectertech.ai/api/v1/entitlements \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "reportable": true
}'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "reportable": true,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Body

application/json
name
string
required

Name of the entitlement

description
string

Detailed description of the entitlement

reportable
boolean

Indicates if the entitlement has usage reporting capability (default: false)

Response

Created - Successful creation of entitlement

id
string

Unique identifier of the created entitlement

name
string

Name of the entitlement

description
string

Detailed description of the entitlement

reportable
boolean

Indicates if the entitlement has usage reporting capability

createdAt
string

Timestamp of when the entitlement was created

updatedAt
string

Timestamp of when the entitlement was last updated

I