docs(ai-sessions): document PATCH /v1/sessions/{id} (rename) - #356
Merged
Conversation
The user-session API reference lists GET, both DELETEs and the fork endpoints but not the rename, because the endpoint did not exist — refractionPOINT/ai-sessions#121 adds it after the web app had been calling it into a 405 since it shipped. Documents the request body, the trim + 200-character rule, the SessionResponse-shaped 200, and the 400/403/404 cases including the name_required and name_too_long error codes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015Nwe6hcQqvPXU4Zpos7XVL
lcbill
approved these changes
Aug 24, 2026
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 user-session API reference lists
GET /v1/sessions/{id}, bothDELETEs and the fork endpoints — but not the rename, because the endpoint did not exist. ai-sessions#121 adds it, after the web app had been calling it into a405 Method Not Allowedsince the session browser shipped (tracking#4640).Documents:
SessionResponseshape as Get Session)400/403/404cases, including thename_requiredandname_too_longerror codesRenaming is accepted in every state including
ended, which is noted — the name is metadata over the session record, not runtime state, so users can curate their history after the fact.Nothing added to
user-sessions.md: rename is not a lifecycle concept, so the API reference is the right and sufficient home for it.Merge after (or alongside) ai-sessions#121 so the docs don't describe an endpoint that isn't deployed yet.
🤖 Generated with Claude Code
https://claude.ai/code/session_015Nwe6hcQqvPXU4Zpos7XVL