- API reference
- Comments
Edit a comment
PATCHhttps://app.notert.io/api/v1/requests/{requestId}/comments/{id}
Changes a comment or internal note the token's holder wrote, as an edit in the app does: replaces its text, takes files off it and adds pictures, so a picture is replaced in one call, and switches who sees it where you ask and its thread allows. Teammates it newly mentions are told, and a note made public emails the person the request is from as a reply would. Only its author can change it, and not while a report on it is reviewed (FORBIDDEN). A file named that isn't on it is UNKNOWN_FILES, and nothing changes. The same text again changes nothing; a call that adds pictures, sent again with the same Idempotency-Key, adds them once. A request merged into another or removed by a moderator, or a comment a moderator removed, is NOT_FOUND. Where it is changed but can't be read back for the answer, the answer holds its id alone, and the list reads the rest.
A token with comments:write. How to send one
Request
curl -X PATCH https://app.notert.io/api/v1/requests/8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40/comments/9a1c3e5f-7b2d-4f6a-8e0c-2b4d6f8a0c1e \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"body": "This is **planned** for next month.",
"internal": false,
"removeAttachmentIds": [
"2e8a4c6f-0b3d-4f9a-8c1e-5d7b9f1a3c62"
],
"pictureUrls": [
"https://example.com/shots/dark-mode.png"
]
}'Response 200
{
"id": "9a1c3e5f-7b2d-4f6a-8e0c-2b4d6f8a0c1e",
"replyTo": "3b5d7f9a-1c2e-4a6b-8d0f-4e6a8c0b2d47",
"body": "This is **planned** for next month.",
"internal": false,
"author": "Dana Kim",
"authorKind": "member",
"attachments": [
{
"attachmentId": "2e8a4c6f-0b3d-4f9a-8c1e-5d7b9f1a3c62",
"name": "invoice-export.png",
"type": "image/png",
"size": 182044,
"url": "https://notert-content.com/requests/6d2e9a1c/4c1e7a9b.png"
}
],
"createdAt": "2026-11-12T09:41:07.654Z"
}Path parameters
requestIdstringRequiredThe request's id. Where an endpoint takes one, its key as its page shows it, such as REQ-44, works too.
At most 64 characters.
idstringRequiredThe comment's id.
At most 64 characters.
Headers
Idempotency-KeystringA key of your own for this call, such as a UUID, sent again with a call made again after its answer was lost, so it stores and sends once and answers what the first stored. The same key with other words names another record. Send it or an id in the body, not both.
At least 1 character. At most 255 characters.
Body
bodystringWhat it should say now, in Markdown, up to 5,000 characters, replacing it whole. Left out, its text stays.
At least 1 character. At most 5000 characters.
internalbooleantrue to make a public comment an internal note, false to make a note public. Left out, who sees it stays as it is. A reply follows its thread, and a comment with public replies stays public.
removeAttachmentIdsstring[]Files to take off it, pictures or documents, by the attachmentId the list answers for each. To replace a picture, name the old one here and the new one in pictureUrls. A comment left with no text and no file is COMMENT_EMPTY.
Default [].
pictureUrlsuri[]Public https addresses of pictures to add beside those it keeps (JPEG, PNG, GIF or WebP, of no more pixels than 3840 x 2160, up to 10 MB each), at most 10 and what the plan's count leaves once those taken off are gone, which the server fetches from the open web. One that can't be fetched, isn't a picture or is too large is PICTURE_REFUSED, and nothing changes.
Default [].
Response 200
idstringThe comment's id.
replyTostring or nullThe comment whose thread it replies in, or null for a comment of its own.
bodystringWhat it says, in Markdown: links, lists, code and mentions of teammates.
internalbooleanWhether it is an internal note the team alone reads, rather than a comment the board shows.
authorstring or nullWho wrote it, by name: Otto for an answer of the workspace's AI agent, null for an author who gave no name. Their email address is never answered.
authorKindstring or nullWhether its author is a member of the team (member), someone outside it the workspace knows, such as a customer (contact), or the workspace's AI agent (otto). Null for an author the workspace no longer knows: one whose account is gone, or a member who left the team.
One ofmembercontactottoattachmentsobject[]Its pictures and other files, in the order they were attached, every one the team sees in the request's thread in the app, those kept for the team alone included.
attachmentIdstringThe file's id, which stays the same while its url may change from one read to the next.
namestringThe file's name.
typestringThe file's content type.
sizeintegerThe file's size in bytes.
urlstring or nullWhere the file opens. A file the public board may show keeps its address; one only the team sees opens until the end of the next day, so download what you keep rather than its address, and list the comments again for a fresh one. Null while it can't be opened from outside the app: a document still being checked for safety, or a file a customer sent that waits for review or that the team keeps to itself, which open only in the app.
createdAtdate-timeWhen it was posted.
Errors
- 400
BAD_REQUESTInput validation failed. - 400
COMMENT_EMPTYA comment needs some text. - 400
IDEMPOTENCY_KEY_REFUSEDSend an Idempotency-Key of 1 to 255 visible characters, or an id of your own in the body, not both. - 401
UNAUTHORIZEDSend a valid API token as a Bearer token. - 403
FORBIDDENOnly the teammate who wrote a comment can change it, and not while a report on it is reviewed. - 403
HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. - 403
INSUFFICIENT_SCOPEThis API token can't comment on requests or delete comments. Create one that may in the workspace's settings. - 403
NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. - 403
NO_SEATThis workspace's plan has no seat for you. - 403
WORKSPACE_SUSPENDEDThis workspace is suspended. - 404
NOT_FOUNDNot Found. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 409
TOO_MANY_FILESThat is more files than the workspace's plan takes. Its data holdslimit. - 409
UNKNOWN_FILESA file named to take off isn't on it, so nothing changed. If an earlier call took it off, that call's change stands; otherwise read it again for its files' ids. Its data holdsattachmentIds. - 409
VISIBILITY_FIXEDA thread keeps one visibility: a note's replies are notes, a comment's are public, and a comment with public replies stays public. - 422
PICTURE_REFUSEDA picture in pictureUrls couldn't be attached, so nothing was written. data.url names it and data.reason says why. Its data holdsurl,reason. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.