Get Latest Draft
Required scope:
public-api:write
public-api:drafts:read
Description
This endpoint returns the most recent draft version of a document.
The response is a JSON object with 5 possible top-level properties:
- systemdata
- metadata
- content
- references
- renditions (deprecated)
Use Cases
- Automation: Fetch draft, modify draft with an external system, update a draft via Document Command API
- Create a Document Preview with an external draft service
- Drafts Delivery Build (Digital Ausgabe)
Endpoint
GET api/beta/documents/:documentId/latestDraft
Parameters
Name | Type | Required | Notes |
---|---|---|---|
:documentId | integer | x | |
?renditions | string | A comma-separated list of rendition handles. Example: ?renditions=web,json | |
?ignoreComponentConditions | boolean | Provides a way to opt out of component filtering and return all content regardless of whether each component passes the conditional checks. Added in: release-2024-03 Default: false | |
?componentConditions | string | JSON stringified object which contains the component conditions you would like to apply. Added in: release-2024-03 Default: dateTime: new Date() Example: ?componentConditions={"dateTime":"2024-02-14T17:25:10.391Z"} |