POST
/
actions
/
execute
curl --request POST \
  --url https://moderationapi.com/api/v1/actions/execute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "actionKey": "<string>",
  "contentIds": [
    "<string>"
  ],
  "value": "<string>",
  "queueId": "<string>"
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Input parameters

actionKey
string
required

ID or key of the action to execute

contentIds
string[]
required

IDs of the content items to apply the action to

value
string

Optional value to provide with the action

queueId
string

Optional queue ID if the action is queue-specific

Response

200
application/json
Action executed successfully

Execution result

success
boolean
required

Whether the action was executed successfully

Was this page helpful?