files

Move or rename. Refuses to replace an existing path unless overwrite.

post/v1/sandboxes/{id}/files:rename

Request

  • Base URL: https://api.withruntime.com
  • URL: https://api.withruntime.com/v1/sandboxes/{id}/files:rename
  • Auth: HTTP bearer

Path parameters

idstring required

Resource identifier (UUID).

Headers

Idempotency-Keystring

Replaying the same key with the same request within 24 hours returns the first result and never repeats the effect. A refusal is not kept: a request refused before it ran (no_capacity, busy, a limit) runs afresh when sent again with its key. The SDKs send one automatically; the server makes one when absent and returns it in the idempotency-key response header.

Request body

fromstring required

Absolute path in the sandbox, e.g. /workspace/app/main.py. Any path the sandbox user may use.

tostring required

Absolute path in the sandbox, e.g. /workspace/app/main.py. Any path the sandbox user may use.

overwriteboolean

Response

Success

fromstring required
tostring required
replayedboolean

Changes

No recorded changes to this operation across all 1 revision of this API.