OpenFolia

Plan a release’s outputs again

POST
/releases/{releaseId}/outputs/plan

Queues the planning of the release’s outputs again, with a release.outputs-plan audit event: for a release whose planning failed for good (the outputs list is short or empty). Planning adds only the outputs the release does not have and renders only those, so it never renders one twice. meta.queued false: its planning is queued or running already. A release of more outputs (every manual at its tag × its variants × the configured languages) than a release may have (CCMS_RELEASE_MAX_OUTPUTS) is 422 too-many-outputs, and nothing is queued. 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.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

releaseId*string

The release’s ID (a UUID). One that names no release, malformed or not, is 404.

Formatuuid

Header Parameters

X-Ccms-User?string

Demo 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).

Response Body

Planning queued (or already queued).

application/vnd.api+json
  1. response
meta*
Example Request
curl -X POST 'http://localhost:3000/releases/497f6eca-6276-4993-bfeb-53cbbbba6f08/outputs/plan'
Example Response
{  "meta": {    "queued": true  }}