---
title: "Changes to Replace one existing text file in a session workspace"
method: PUT
path: "/api/v1/sessions/{sessionId}/workspace/file"
---

# Changes to Replace one existing text file in a session workspace

`PUT /api/v1/sessions/{sessionId}/workspace/file`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 255 revisions.

- **2026-10-21** `8f160e6183cd`: 5 info
- **2026-10-21** `9fd7084a4f87`: 1 info
- **2026-09-11** `e7df8c98cb09`: 1 info

## Changes

- **2026-10-21** `8f160e6183cd`: 5 info
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `400`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `404`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `409`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `500`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `501`
- **2026-10-21** `9fd7084a4f87`: 1 info
  - added the optional property `historical` to the response with the `200` status
- **2026-09-11** `e7df8c98cb09`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/docs/api/v1/sessions/:sessionId/workspace/file/put.md) - [API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) - [Page](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/sessions/:sessionId/workspace/file/put)
