Skip to main content
POST
/
v1
/
instances
/
{instance_id}
/
files
/
move
curl -X POST https://api.chowder.dev/v1/instances/ins_abc123/files/move \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "config/old-name.json",
    "destination": "config/new-name.json"
  }'
No Content
Moves (or renames) a file or directory from one path to another on the instance. Works like mv — you can use it to rename files in place or move them to a different directory.

Authentication

Requires an org-level API key or a scoped token with the appropriate permission.

Path Parameters

instance_id
string
required
The ID of the instance.

Body Parameters

source
string
required
The current path of the file or directory, relative to the instance root.
destination
string
required
The new path for the file or directory, relative to the instance root.

Response

Returns 204 No Content on success.
curl -X POST https://api.chowder.dev/v1/instances/ins_abc123/files/move \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "config/old-name.json",
    "destination": "config/new-name.json"
  }'
No Content