Create a render job for a deploy
const url = 'https://api.presscloud.example/v1/deploys/example/render-jobs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"deployId":"example","deployVersionId":"example","businessKey":"example","payload":"example","payloadMime":"example","payloadBase64":"example","outputMode":"transient"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.presscloud.example/v1/deploys/example/render-jobs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "deployId": "example", "deployVersionId": "example", "businessKey": "example", "payload": "example", "payloadMime": "example", "payloadBase64": "example", "outputMode": "transient" }'Accepts a JSON request envelope and enqueues asynchronous rendering for the deploy in the path. If deployId is also provided in the request body, it must match the path parameter.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Header Parameters
Section titled “Header Parameters ”Optional request idempotency key for retry-safe render job creation.
Request Body required
Section titled “Request Body required ”object
Optional deploy id. When provided, it must match the deploy id in the route path.
A concrete deploy version id or the virtual pointer latest.
Render payload content. When payloadMime is omitted or resolves to JSON, this value is canonicalized as JSON. When payloadMime is a non-JSON MIME, this field must be a UTF-8 string payload.
Explicit MIME type for the render payload. Defaults to application/json; charset=utf-8.
Optional raw payload bytes encoded as base64. Use this instead of payload for non-JSON binary payloads.
Responses
Section titled “ Responses ”Render job accepted and queued.
object
object
Example
{ "accepted": true, "job": { "status": "queued", "outputMode": "transient" }}Invalid request payload or parameters.
object
Example generated
{ "error": "example", "message": "example"}Requested resource was not found.
object
Example generated
{ "error": "example", "message": "example"}Requested operation conflicts with the current resource state.
object
Example generated
{ "error": "example", "message": "example"}