Skip to content

docs(ai-sessions): document PATCH /v1/sessions/{id} (rename) - #356

Merged
maximelb merged 1 commit into
masterfrom
docs/ai-sessions-rename-endpoint
Aug 25, 2026
Merged

docs(ai-sessions): document PATCH /v1/sessions/{id} (rename)#356
maximelb merged 1 commit into
masterfrom
docs/ai-sessions-rename-endpoint

Conversation

@maximelb

Copy link
Copy Markdown
Contributor

The user-session API reference lists GET /v1/sessions/{id}, both DELETEs 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 a 405 Method Not Allowed since the session browser shipped (tracking#4640).

Documents:

  • the request body and that whitespace is trimmed
  • the non-empty, ≤200-character rule
  • the 200 response (same SessionResponse shape as Get Session)
  • the 400 / 403 / 404 cases, including the name_required and name_too_long error codes

Renaming 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

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
@maximelb
maximelb marked this pull request as ready for review August 25, 2026 18:08
@maximelb
maximelb merged commit 40a2004 into master Aug 25, 2026
7 checks passed
@maximelb
maximelb deleted the docs/ai-sessions-rename-endpoint branch August 25, 2026 18:08
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