---
title: "Changes to Update an agent session"
method: PATCH
path: "/api/v0beta1/sandboxes/{id}/sessions/{sessionId}"
---

# Changes to Update an agent session

`PATCH /api/v0beta1/sandboxes/{id}/sessions/{sessionId}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 2 of 20 revisions.

- **2026-10-23** `c46868fd7b41`: 2 info
- **2026-09-01** `9d2fbb0537d1`: 11 breaking, 1 info

## Changes

- **2026-10-23** `c46868fd7b41`: 2 info
  - added the new optional `query` request parameter `sandbox_by`
  - added the non-success response with the status `409`
- **2026-09-01** `9d2fbb0537d1`: 11 breaking, 1 info
  - the response's body type changed from `object` to no type for status `200`
  - removed the required property `agent_name` from the response with the `200` status
  - removed the required property `created_at` from the response with the `200` status
  - removed the required property `ended_at` from the response with the `200` status
  - removed the required property `id` from the response with the `200` status
  - removed the required property `metadata` from the response with the `200` status
  - removed the required property `org_id` from the response with the `200` status
  - removed the required property `sandbox_id` from the response with the `200` status
  - removed the required property `started_at` from the response with the `200` status
  - removed the required property `status` from the response with the `200` status
  - removed the required property `updated_at` from the response with the `200` status
  - added `#/components/schemas/AgentSessionSummary, subschema #2` to the response body `allOf` list for the response status `200`

---

[Operation](https://skmtc.dev/amika/apis/amika-api/docs/api/v0beta1/sandboxes/:id/sessions/:sessionId/patch.md) - [API](https://skmtc.dev/amika/apis/amika-api.md) - [Page](https://skmtc.dev/amika/apis/amika-api/changes/api/v0beta1/sandboxes/:id/sessions/:sessionId/patch)
