PUT
/
actions
/
{id}
curl --request PUT \
  --url https://moderationapi.com/api/v1/actions/{id} \
  --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.

Path Parameters

id
string
required

The ID of the action to update.

Body

application/json

Response

200
application/json
Action updated successfully

The response is of type object.