Skip to main content

Add a note to a document.

POST/api/v1/documents/{document_id}/notesannotations:write

Adds a note to a document you can read. Private notes are visible only to you.

Scopeannotations:write
AsynchronousNo
MCP toolcreate_document_note
Portal permissionscreate_document_notes

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonNoteCreateInput

Responses​

StatusDescriptionBody
201Success.application/json Note or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

Note​

FieldTypeRequiredDescription
created_byUserRefRequired
created_datestring or nullRequired
document_idstringRequired
is_privatebooleanRequiredVisible only to its author.
note_idstringRequired
note_jsonstring or nullRequiredThe rich-text form of the note, when it has one.
note_textstringRequired
pageinteger or nullRequiredThe 1-based page the note is pinned to; null when unpinned.

NoteCreateInput​

FieldTypeRequiredDescription
is_privateboolean or nullOptionalfalse when absent.
note_jsonstring or nullOptional
note_textstringRequired
pageinteger or nullOptional1-based; absent or 0 leaves the note unpinned.

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired