Documents
Publish a document — mint a new immutable release
Snapshots the current draft state of a document into a new documentReleases row. The release is what the KB indexer reads from, not the live draft. Patching the document after publish does not affect the release.
Authorization
ApiKeyAuth x-api-key<token>
In: header
Path Parameters
organizationId*string
Format
uuiddocumentId*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08/releases" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "documentId": "4704590c-004e-410d-adf7-acb7ca0a7052", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "version": 1, "publishedAt": 0, "publishedBy": "string", "releaseNotes": "string", "snapshot": { "name": "string", "description": "string", "type": "policy", "policyType": "string", "accessLevel": "public", "assets": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "format": "html", "language": "string", "body": "string", "file": { "bucket": "string", "key": "string", "size": 0, "fileName": "string", "contentType": "string", "etag": "string", "sha256": "string" }, "version": 0, "dateCreated": 0, "dateUpdated": 0 } ], "quiz": { "items": [ {} ], "passPercent": 1 }, "videoUrl": "http://example.com" }, "dateCreated": 0, "dateUpdated": 0}