Skip to main content
PATCH
/
v2
/
notes
/
{id}
Update note content
curl --request PATCH \
  --url https://client-api.salesfinity.co/v2/notes/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "content": "Updated note content",
  "user_id": "507f1f77bcf86cd799439011"
}
'
{
  "_id": "507f1f77bcf86cd799439011",
  "team": "507f1f77bcf86cd799439012",
  "author": {
    "_id": "507f1f77bcf86cd799439011",
    "first_name": "<string>",
    "last_name": "<string>",
    "email": "<string>",
    "image": "<string>"
  },
  "content": "<string>",
  "is_pinned": true,
  "pinned_at": "2023-11-07T05:31:56Z",
  "pinned_by": "<string>",
  "contact": "<string>",
  "company": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.salesfinity.ai/llms.txt

Use this file to discover all available pages before exploring further.

Updates the content of an existing note.
Only the original author may edit a note.

Path Parameters

  • id (required, string): Note ID, from List Notes.

Request Body

FieldTypeRequiredMax LengthDescription
contentstringYes10,000Updated plain text content of the note
user_idstringYesID of the team member performing the update. Must match the original author of the note.

Example Request

{
  "content": "Updated: confirmed budget approved for Q3.",
  "user_id": "507f1f77bcf86cd799439033"
}

Response (200)

Returns the updated note object.

Errors

StatusDescription
403Only the author can edit this note
404Note not found

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

Note ID

Body

application/json
content
string
required

Updated plain text content of the note

Maximum string length: 10000
Example:

"Updated note content"

user_id
string
required

ID of the team member performing the update. Must match the original author of the note.

Example:

"507f1f77bcf86cd799439011"

Response

Note updated successfully

_id
string
Example:

"507f1f77bcf86cd799439011"

team
string
Example:

"507f1f77bcf86cd799439012"

author
object

Note author. Populated when available; otherwise just the user ID under _id.

content
string

Plain text content of the note

is_pinned
boolean

Whether this note is pinned to the top

pinned_at
string<date-time> | null
pinned_by
string | null
contact
string | null

Contact this note is attached to (mutually exclusive with company)

company
string | null

Company this note is attached to (mutually exclusive with contact)

createdAt
string<date-time>
updatedAt
string<date-time>