sections, the supplied array replaces the existing sections in full, so include all sections you want to preserve. A common use case is setting status to amended and appending a new addendum section.
Request
PATCH https://api.clinikapi.com/v1/documents/:id
Headers
Your ClinikAPI secret key (
clk_live_* or clk_test_*).Must be
application/json.Path parameters
The ID of the document to update (e.g.
doc_abc123).Body
Updated document status. One of:
preliminary, final, amended.Updated document title.
Replacement sections array. This fully replaces the existing sections, so include all sections you want to keep.
Updated confidentiality level. One of:
N, R, V.Updated document date in
YYYY-MM-DD format.Response
Returns200 OK with the updated document wrapped in the standard envelope. All fields reflect the post-update state.
Document ID.
Updated document status.
Full updated sections array.
Standard response metadata including
requestId, timestamp, status, and rate-limit fields.