Skip to main content
POST
/
v0
/
contract
/
enforcement-level
Create a contract enforcement level
curl --request POST \
  --url https://{hostname}.gable.ai/v0/contract/enforcement-level \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "contractId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "enforcementLevel": "RECORD"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "contractId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "enforcementLevel": "INACTIVE"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
contractId
string<uuid>
required
enforcementLevel
enum<string>
required
Available options:
RECORD,
NOTIFY,
ALERT,
BLOCK,
INACTIVE

Response

id
string<uuid>
required
contractId
string<uuid>
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
enforcementLevel
enum<string>
default:INACTIVE
required
Available options:
RECORD,
NOTIFY,
ALERT,
BLOCK,
INACTIVE