Skip to main content
POST
Pin or unpin a note
Flips a note between pinned and unpinned. Pinned notes sort to the top of List notes, the most recently pinned first.
Unlike editing and deleting, any team member may pin or unpin a note, not only its author.
This call toggles, so it is not idempotent: a retried request undoes the first one. To reach a specific state, read is_pinned from List notes and call this only when it differs.

Path parameters

  • id (required, string): The note’s _id, a 24-character hex string, from List notes.

Request body

Example request

Response (201)

Returns the updated note object with its new is_pinned, pinned_at and pinned_by.

Errors

Authorizations

x-api-key
string
header
required

Team-scoped API key generated in the Salesfinity dashboard under Settings → Connections → API & Webhooks. A missing or invalid key returns HTTP 403.

Path Parameters

id
string
required

The note's _id, as returned by List notes or Create a note. A 24-character hex string.

Example:

"6703f1c2a9e4b8d1c2f3a4b5"

Body

application/json
user_id
string
required

ID of the member pinning or unpinning, a 24-character hex string. Any member of the team may; recorded as pinned_by when the note becomes pinned.

Example:

"507f1f77bcf86cd799439044"

Response

The note with its new pin state.

_id
string

Note ID.

Example:

"6703f1c2a9e4b8d1c2f3a4b5"

team
string

Team that owns the note.

Example:

"507f1f77bcf86cd799439012"

author
object

The author, with first_name, last_name, email and image when Salesfinity has them. null if the author's user record no longer exists.

content
string

Plain text of the note.

is_pinned
boolean

Whether the note is pinned. false for a new note.

pinned_at
string<date-time> | null

When the note was pinned. Absent when the note is not pinned.

pinned_by
string | null

ID of the member who pinned the note. Absent when the note is not pinned.

contact
string | null

ID of the contact the note is attached to. Present on person notes only.

company
string | null

ID of the company the note is attached to. Present on company notes only.

createdAt
string<date-time>

When the note was created.

updatedAt
string<date-time>

When the note was last changed, including pin changes.