POST
/
v2
/
policies
Create policy
curl --request POST \
  --url https://coreapi-dev.us.bcpapers.ca/v2/policies \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "item_type": "<string>",
  "name": "<string>",
  "params": [
    123
  ],
  "priority": 123
}
'
{
  "created_at": "<string>",
  "id": "<string>",
  "item_type": "<string>",
  "name": "<string>",
  "params": [
    123
  ],
  "priority": 123,
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Paste the JWT token only (no "Bearer " prefix needed — the UI adds it automatically).

Body

application/json

Policy definition

item_type
string
name
string
params
integer[]
priority
integer

Response

Created

created_at
string
id
string
item_type
string
name
string
params
integer[]
priority
integer
updated_at
string