POST
/
actions
/
execute
curl -X POST 'https://moderationapi.com/api/v1/actions/execute' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{
    "contentIds": [
      "60c9e1c0e4e7e1001c7a0e1e",
      "60c9e1c0e4e7e1001c7a0e1f"
    ],
    "actionId": "suspend-author",
    "value": "Spam"
  }'
{
  "success": true
}
curl -X POST 'https://moderationapi.com/api/v1/actions/execute' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{
    "contentIds": [
      "60c9e1c0e4e7e1001c7a0e1e",
      "60c9e1c0e4e7e1001c7a0e1f"
    ],
    "actionId": "suspend-author",
    "value": "Spam"
  }'

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[]

IDs of the content items to apply the action to. Provide this or authorIds.

authorIds
string[]

IDs of the authors to apply the action to. Provide this or contentIds.

value
string

Optional value to provide with the action

queueId
string

Optional queue ID if the action is queue-specific

duration
number

Optional duration in milliseconds for actions with timeouts

Required range: x >= 0

Response

Action executed successfully

Execution result

success
boolean
required

Whether the action was executed successfully