Pin or unpin a note
Flips a note between pinned and unpinned. Any member of the team can pin or unpin any of the team’s notes, not only the author.
Pinning sets is_pinned to true and records pinned_at and pinned_by (the user_id you send). Unpinning sets is_pinned to false and removes both fields. Pinned notes sort first in List notes, most recently pinned first.
Not idempotent: each call flips the state, so a retried request can undo the first. To reach a specific state, read is_pinned from List notes and call this only when it differs. Succeeds with 201.
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 newis_pinned, pinned_at and pinned_by.
Errors
Authorizations
Path Parameters
The note's _id, as returned by List notes or Create a note. A 24-character hex string.
"6703f1c2a9e4b8d1c2f3a4b5"
Body
Response
The note with its new pin state.