API referenceSessions
Update Session
Rename, pin, archive, or switch the model the next turns run on.
Requires the write scope.
Authorization
apiKey AuthorizationBearer <token>
First-party API key (sbk_live_…), presented as a Bearer token.
In: header
Path Parameters
session_id*Session Id
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Omitted fields stay as they are. model is a session setting, as in the web UI.
Response Body
application/json
application/problem+json
curl -X PATCH "https://example.com/v1/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9", "title": "string", "status": "string", "pinned": false, "model": "string", "turn_count": 0, "last_message_preview": "string", "context": [], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "last_activity_at": "2019-08-24T14:15:22Z"}