Skip to main content
Edit own comment

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

historyId
string
required

Identifier of the comment to edit

Pattern: ^[a-f0-9]{32}$
Example:

"9f1c4e2ab7d4423d8a6f0c5e3b7d1a92"

id
string
required

Identifier of the document the comment belongs to.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

Body

application/json
comment
string | null

New text of the comment, with the formatting and mentions a new comment accepts. Leaving it out keeps the text, and null removes it from a comment that keeps its drawing. At least one of comment and commentAttachment must be provided.

Maximum string length: 2000
Example:

"Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>."

commentAttachment
string | null

Identifier of a new drawing for the comment - a PNG image of at most 1048576 bytes that the caller uploaded and that is not used anywhere yet, allowed by the settings of the document owner. It replaces the drawing the comment carries, which makes room for it among the at most 50 drawings a document holds. Leaving it out keeps the drawing, and null removes it from a comment that keeps its text. At least one of comment and commentAttachment must be provided.

Minimum string length: 1
Pattern: ^[a-z0-9]+$
Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

Response

Success

status
string

Outcome of the operation, reported as a status type constant.

Example:

"SUCCESS"