POST
/
actions
curl --request POST \
  --url https://moderationapi.com/api/v1/actions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "name": "<string>",
  "description": "<string>",
  "queueBehaviour": "NO_CHANGE",
  "filterInQueueIds": [],
  "position": "ALL_QUEUES",
  "possibleValues": [],
  "valueRequired": false,
  "freeText": false,
  "webhooks": []
}'
{
  "id": "<string>",
  "key": "<string>",
  "createdAt": "<string>",
  "name": "<string>",
  "description": "<string>",
  "queueBehaviour": "NO_CHANGE",
  "filterInQueueIds": [],
  "position": "ALL_QUEUES",
  "possibleValues": [],
  "valueRequired": false,
  "freeText": false
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json
Action created successfully

The response is of type object.