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

Authorizations

Authorization
string
headerrequired

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

Path Parameters

actionId
string
required

The ID of the action to execute.

Body

application/json
contentIds
string[]
required

The IDs of the content items to perform the action on.

queueId
string

The ID of the queue the action was performed from if any.

value
string

The value of the action. Useful to set a reason for the action etc.

Response

200 - application/json
success
boolean
required

Action executed successfully.

actionId
string
required

The ID of the action.

ids
string[]
required

The IDs of the content items.

Was this page helpful?