cURL
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 }
Update an action.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the action to update.
Action updated successfully
The response is of type object.
object
Was this page helpful?