The POST /interactions/jobs/{id}/{action}
endpoint enables you to change the status of a job. The action can be executed against a job that is in the correct status. These are available actions on corresponding statuses:
- A
cancel
action can be run on aScheduled
,Running
, orPaused
job, resulting in aCancelled
status - A
restart
action can be run on aFailed
orPaused
job, resulting in aScheduled
status - A
pause
action can be run on aScheduled
orRunning
job, resulting in aPaused
status
In this page
Headers
Header parameters in Requests (Interaction Content Export API) apply to this endpoint.
Authorization scopes supported:
Scope | Access granted |
---|---|
interaction-content:read | Entire endpoint |
Parameters
The endpoint accepts the following path parameters:
id
Type | Required | Example |
---|---|---|
String | True | fe4b9c24-d305-492e-90e2-ddbdd7a36555 |
Unique identifier of a job.
action
Type | Required | Example |
---|---|---|
String | True | restart |
An action to be taken on a job. Supported actions:
cancel
restart
pause
Request
Schedule recurring job
curl -L -X POST "https://***.api.cc.vonage.com/interaction-content-export/interactions/jobs/fe4b9c24-d305-492e-90e2-ddbdd7a36555/restart" \ -H "Authorization: Bearer <ACCESS_TOKEN>" \ -H "Accept: application/vnd.newvoicemedia.v1+json" \
Responses
Responses to the endpoint return no content.
Successful response
For information about successful responses, see Success response code and parameters in Responses (Interaction Content Export API).
Try it out
For information, see Trying out Vonage Contact Center APIs.