Support title/tag metadata updates in note PATCH APIs#49
Open
Support title/tag metadata updates in note PATCH APIs#49
Conversation
Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com> Agent-Logs-Url: https://github.com/hackmdio/api-client/sessions/782df678-b097-4b7e-b0c7-451b5be8bbb7
Copilot created this pull request from a session on behalf of
Yukaii
March 24, 2026 05:30
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The client’s note update methods were still typed for an older metadata shape and did not allow updating
titleortags, 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
UpdateNoteOptionstype for note PATCH payloadstitletagsClient methods
updateNote()to accept the latest metadata fieldsupdateTeamNote()to accept the same payload shape for parityCoverage
titleandtagsthrough unchangedNote
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
updateNoteandupdateTeamNotemethod signatures to accept a new sharedUpdateNoteOptionspayload 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/tagsthrough unchanged (and for user notes, still returnetagwhen unwrapping data).Written by Cursor Bugbot for commit 6b63270. This will update automatically on new commits. Configure here.