Interlaken
API referenceAgents and workflowsAgent sessions

Edit one session-memory file (human curation; empty content deletes the file)

PUT
/api/v1/agent-sessions/memory

Requires the agent_sessions:create permission.

Authorization

AuthorizationBearer <token>

An access token from this zone's POST /oauth/token, or a session token from POST /api/v1/auth/login. Send it as Authorization: Bearer <token>.

In: header

Query Parameters

file?string
repo?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/v1/agent-sessions/memory" \  -H "Content-Type: application/json" \  -d '{    "content": "string"  }'
{  "files": [    {      "content": "string",      "filename": "string",      "source_session_id": "312bde73-ab6c-4229-8af2-a9c9ab28d2bf",      "updated_at": "2019-08-24T14:15:22Z",      "updated_by": "string",      "version": 0    }  ],  "recaps": [    {      "content": "string",      "created_at": "2019-08-24T14:15:22Z",      "harness": "string",      "seq": "string",      "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",      "session_title": "string"    }  ],  "repo_key": "string"}