Update Session
Rename a session, change lifecycle status, or update line counters.
Authorizations
Path Parameters
The id of the session to update.
Body
All fields are optional; an empty object {} is valid and leaves the session unchanged.
New display title for the session (rename).
Lifecycle status (matches the DB CHECK). running is active / unarchived; completed and failed are terminal; archived archives the row. Use running to unarchive from archived.
running, completed, failed, archived Updates the persisted lines_added column on the session (≥ 0).
x >= 0Updates the persisted lines_removed column on the session (≥ 0).
x >= 0Response
Session updated successfully.
Agent session returned by POST /api/sessions, GET /api/sessions/{sessionId}, and PATCH /api/sessions/{sessionId}. The api serializes every field listed in required on each response, including isNewBranch (boolean, from the non-null sessions.is_new_branch column) and artistId (UUID or null).
