Skip to content

Support title/tag metadata updates in note PATCH APIs#49

Merged
Yukaii merged 1 commit intodevelopfrom
copilot/support-latest-metadata-updating
Apr 23, 2026
Merged

Support title/tag metadata updates in note PATCH APIs#49
Yukaii merged 1 commit intodevelopfrom
copilot/support-latest-metadata-updating

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 24, 2026

The client’s note update methods were still typed for an older metadata shape and did not allow updating title or tags, even though the latest API supports both fields. This aligns the user-note and team-note PATCH payloads with the current metadata update contract.

  • API surface

    • Added a shared UpdateNoteOptions type for note PATCH payloads
    • Expanded supported update fields to include:
      • title
      • tags
      • existing content/permission/permalink fields
  • Client methods

    • Updated updateNote() to accept the latest metadata fields
    • Updated updateTeamNote() to accept the same payload shape for parity
  • Coverage

    • Added focused tests asserting that note and team-note PATCH requests pass title and tags through unchanged
await client.updateNote('note-id', {
  title: 'Updated title',
  tags: ['api', 'metadata']
})

await client.updateTeamNote('team-path', 'note-id', {
  title: 'Updated team note',
  tags: ['team', 'shared']
})

Note

Low Risk
Low risk: this is a TypeScript type-surface expansion for existing PATCH endpoints plus tests, with no behavioral changes to request/response handling beyond allowing additional fields through.

Overview
Updates the Node.js client’s updateNote and updateTeamNote method signatures to accept a new shared UpdateNoteOptions payload type, enabling PATCH updates of note metadata (title, tags) alongside existing content/permission/permalink fields.

Adds tests ensuring both user-note and team-note PATCH calls pass title/tags through unchanged (and for user notes, still return etag when unwrapping data).

Written by Cursor Bugbot for commit 6b63270. This will update automatically on new commits. Configure here.

@Yukaii Yukaii marked this pull request as ready for review March 24, 2026 05:30
@Yukaii Yukaii merged commit 9de781f into develop Apr 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants