Documents

Publish a document version

Archives the prior published version and publishes the target. Writes audit-log row v1_publish_document. Publishing a version that is already published returns 200 with noop: true and publishes nothing new; if the document status row had drifted from that version, it is corrected and the response adds repairedStatus: true. A version that cannot be published in its current state returns 409. Send no body, or an empty JSON object ({}): a body with any field is refused with 400 unsupported_field, because this route only publishes.

Role gate: owner / admin.

Scope: documents:write.

post/api/v1/companies/{companyId}/documents/{documentId}/versions/{versionId}/publish

Request

  • Base URL
    https://comply.strac.io
  • Auth
    HTTP bearer

Path parameters

companyIdstring required

Your organization id.

documentIdstring required

Document id.

versionIdstring required

Version id to publish.

Response

Publish a document version

Changes

No recorded changes to this operation across all 1 revision of this API.