Render a failed output again
Queues a failed output again (queued, its error cleared, meta.retries one more), with a release.output-retry audit event; it renders in the background, at the release’s tag as before. A publisher who may not read the output (no role of theirs covers all of its manual, as for GET …/outputs) gets only its state and counts back. Only a failed output: one queued, rendering or done is 409 output-not-failed. Takes no body (send Content-Type: application/vnd.api+json). Needs the release.publish permission in a role whose scope covers the release’s product in every language, module type and audience, and content.read.
bearerAuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
releaseId*stringThe release’s ID (a UUID). One that names no release, malformed or not, is 404.
uuidoutputId*stringThe output’s ID (a UUID). One that names no output of the release you may read, malformed or not, is 404.
uuidX-Ccms-User?stringDemo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).
Queued again.
application/vnd.api+json- response
data*The output queued again. A publisher who may not read it (no role of theirs covers all of its manual, as GET …/outputs judges it) gets only state, meta.attempts and meta.retries: every other attribute and meta member is absent, so retrying shows nothing that reading would not.
curl -X POST 'http://localhost:3000/releases/497f6eca-6276-4993-bfeb-53cbbbba6f08/outputs/497f6eca-6276-4993-bfeb-53cbbbba6f08/retry'{ "data": { "type": "ReleaseOutput", "id": "string", "attributes": { "manual": "string", "variant": "string", "lang": "string", "kind": "pdf", "audience": "string", "state": "queued", "sha256": "string", "size": -9007199254740991, "error": { "code": "string", "detail": "string" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z" }, "meta": { "reusedFrom": { "releaseId": "string", "outputId": "string" }, "attempts": -9007199254740991, "retries": -9007199254740991, "withdrawn": true, "design": { "id": "string", "name": "string", "source": "manual", "missing": true } }, "links": { "file": "string" } }}