Skip to main content
POST
Workspace: Multi Edit
Apply multiple file edits atomically. Each edit uses the same exact-match semantics as File Edit. If any edit fails, all changes are rolled back.

Path Parameters

string
required
Agent ID (UUID)

Request Body

array
required
Ordered list of edits to apply. Each item has:

Response

string
Result status (e.g., ok).

Example Request

Notes

  • Edits are applied in the order provided. Later edits can operate on content produced by earlier edits in the same request.
  • If any single edit fails (e.g., old_text not found), the entire batch is rolled back so the workspace is not left in a half-applied state.

See Also

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

agent_id
string
required

Body

application/json
edits
SingleEdit · object[]
required

List of edits to apply atomically. If any edit fails, all changes are rolled back.

Response

Successful Response

results
SingleEditResult · object[]

Results for each edit operation