Update a single Note
| ⚠️ This endpoint is currently in BETA |
|---|
Make an update to an existing note’s body content and/or its entity associations
(persons, companies, opportunities).
You can only update notes you have write access to. You can update any type of note including
AI Notetaker notes (ai-notetaker, ai-notetaker-reply); a note’s type itself cannot be
changed.
All body properties are optional — only the properties supplied are mutated, and omitted
properties are left unchanged. For each of persons, companies, and opportunities, you
may:
- omit the field to leave existing associations unchanged,
- send an empty array (
[]) to clear all associations of that kind, or - send a non-empty array to replace the existing set with the supplied list.
Reply notes (user-reply, ai-notetaker-reply) have no entity associations, so only
content is updatable for replies.
Updating content is subject to the same HTML restrictions as creation (see
notes.ContentToBeSaved); submitting disallowed HTML will cause the request to fail.
The content of notes that contain @mentions cannot be updated through this endpoint;
attempting to do so returns 400 Bad Request.
Returns 204 No Content on success, regardless of whether any properties actually changed.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The id of the Note to update
1 <= x <= 2147483647Body
Request body for updating an existing note. All properties are optional - only those explicitly provided are mutated; omitted properties are left unchanged.
The properties that may be updated depend on the existing note's type:
- Root notes (
entities,interaction,ai-notetaker) may updatecontentand the entity association arrays (persons,companies,opportunities). - Reply notes (
user-reply,ai-notetaker-reply) may updatecontentonly; attachingpersons,companies, oropportunitiesto a reply note is rejected.
For each of persons, companies, and opportunities, you may:
- omit the field to leave existing associations unchanged,
- send an empty array (
[]) to clear all associations of that kind, or - send a non-empty array to replace the existing set with the supplied list.
Any note the caller has write access to is updatable, including AI Notetaker notes. A note's type itself cannot be changed. The content of notes that contain @mentions cannot be updated.
If provided, replaces the note's content. Subject to the same HTML restrictions as creation (see notes.ContentToBeSaved).
Persons attached to the note. When replacing, each item references a Person by id. Only valid for root notes.
100Companies attached to the note. When replacing, each item references a Company by id. Only valid for root notes.
100Opportunities attached to the note. When replacing, each item references an Opportunity by id. Only valid for root notes.
100Response
No Content