Actions
Create an action
Account
Content moderation
Actions
Wordlist (Enterprise)
Authors (Enterprise)
Actions
Create an action
Create an action.
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
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
.
Was this page helpful?
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
}