Api reference
PATCH Sessions Id
PATCH
/v1/sessions/{id}Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
agentSessionId?string|null
isArchived?boolean|null
title?string|null
worktreeName?string|null
updatedAt?string|null
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/sessions/string" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "projectId": "string", "serverId": "string", "harnessId": "string", "harnessAccountId": "string", "agentSessionId": "string", "title": "string", "origin": "codevisor", "isArchived": true, "worktreeName": "string", "cwd": "string", "createdAt": "string", "updatedAt": "string", "usage": { "used": 0, "size": 0, "costAmount": 0, "costCurrency": "string" }}{ "error": "string"}{ "error": "string"}{ "error": "string"}