Update Text Note
PARAMETERS
If you want to update your customer unique medicalId key then you can pass as a string.
The difference between rawText and text
text: Text is an HTML field to display content on the editor. It helps users to identify bold, italic or any other editor functionality.
Important: If you don't have HTML editor in your application then you can pass normal text content.
rawText: This helps Speak Ai to analyze text notes.
remark: If you want to pass any remarks from the user to display on Speak and also in your application.
medicalId: String, // optional
name: String, // required,
description: string, // optional
tags: [], // optional
text: "HTML content", // see below
rawText: "raw text content", // see below
remark: "string", // optional
Request rules. The mediaId in the path is required and must belong to a note in your workspace that is not deleted. If it does not, you get a 404 before the controller runs. Body validation happens first, so a bad body returns a 400 before that check.
Nothing in the body is unconditionally required, but any property not listed below is rejected with a 400, so do not send extra keys.
Updating the note's text is an all-or-nothing operation, everything else is a partial update. Omit rawText entirely and the note's text, rawText, sentiment, and word/character counts are left completely unchanged — nothing else in the request affects them. If you include rawText at all (even as an empty string), this endpoint replaces rather than patches the text content: an empty or wordless rawText clears both rawText and text on the note and empties its stored sentiment. So: to update the note's text, always send the complete text and rawText you want to keep together in the same request; to update anything else (name, description, tags, remark, status, manageBy) without touching the note's content, leave rawText out entirely.
description, manageBy, remark, status and createdAt are only written when you send a value that is not empty. Sending an empty string for any of them leaves the current value in place instead of clearing it. tags behaves differently: an empty string leaves the current tags alone, but an empty array is written and clears them.
Omitting name leaves the stored title unchanged.
Set isAutoSave to true for background editor saves. That skips reanalysis and skips the in-app update notification. On a normal save, Speak reanalyzes the note only if it has not been processed before, and a note analyzed webhook is attempted when it does.
Request
- Base URL: https://api.speakai.co/v1
- URL: https://api.speakai.co/v1/text/update/{mediaId}
- Auth: API key in header x-speakai-key and API key in header x-access-token
Path parameters
Request body
Response
Success
Changes
No recorded changes to this operation across all 2 revisions of this API.