Skip to main content
PUT
/
v1
/
instances
/
{instance_id}
/
files
/
content
curl -X PUT https://api.chowder.dev/v1/instances/ins_abc123/files/content \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "path": "config/custom.json",
    "content": "{\n  \"key\": \"value\"\n}"
  }'
No Content
Writes text content to a file on the instance. If the file already exists, it will be overwritten. If it doesn’t exist, it will be created (along with any necessary parent directories).

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

path
string
required
The file path to write to, relative to the instance root.
content
string
required
The text content to write to the file.

Response

Returns 204 No Content on success.
curl -X PUT https://api.chowder.dev/v1/instances/ins_abc123/files/content \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "path": "config/custom.json",
    "content": "{\n  \"key\": \"value\"\n}"
  }'
No Content