Save Harbor Context Draft
Creates or completely replaces the mutable draft for a Harbor context document.
The request supplies the complete draft payload. If a draft already exists,
this request replaces it while preserving the draft ID, creation metadata, and
`base_revision_id`.
A new draft for a published document records the current revision as its base.
An unpublished document's initial draft keeps a null base when replaced. Saving
a draft does not change published content or its `updated_at`. Creator and
updater provenance comes from the request actor; system actors have a null actor
ID.
Authentication
AuthorizationBearer
Bearer user API key
OR
AuthorizationBasic
Basic organization-scoped API key
Path parameters
harbor_id
Unique identifier of the Harbor.
context_id
Unique identifier of the context document.
Headers
X-Polytomic-Version
Request
This endpoint expects an object.
content
Complete plain-text draft content. Maximum 20,000 characters.
title
Human-readable draft title. Maximum 200 characters.
change_note
Optional note stored with the draft and copied to the published version on promotion.
description
Short summary of the draft. Maximum 1,000 characters.
Response
OK
data
Errors
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error
