Run a finished run again (staff)
POST /api/automations/{id}/runs/{runId}/rerun. Run a finished run again (staff). Headless LMS Automations API reference.
Staff only (owner, admin, instructor). Dispatches the same run again with the automation's current steps; the new outcome replaces the run's previous one. For a webhook this resends the delivery to its current URL. A run that is still running can't be rerun (409).
Path Parameters
id*string
runId*string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/automations/string/runs/string/rerun"{ "orgId": "string", "id": "string", "automationId": "string", "trigger": "string", "eventId": "string", "event": { "type": "string", "version": 1, "id": "string", "orgId": "string", "occurredAt": "string", "data": null, "metadata": { "property1": null, "property2": null } }, "status": "running", "actionResults": [ { "index": 0, "type": "string", "status": "completed", "error": "string", "recipients": [ "string" ] } ], "startedAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}{ "error": "string", "message": "string", "requestId": "string", "issues": [ { "path": "string", "message": "string" } ]}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}