Skip to main content
Write content to a file in the sandbox. Creates the file if it doesn’t exist, or overwrites if it does. Only allowed paths can be written.

Endpoint

Request

Headers

Body Parameters

Example Request

Write JSON file:

Response

Success (200 OK)

Response Fields

Status Codes

Errors

Path Not Allowed (403)

Cause: The path is outside allowed directories. Fix: Only write files to /workspace, /tmp, or other explicitly allowed paths.

Use Cases

Write Configuration

Write Python Script

Write CSV Data

Write and Execute

Write from Python

Next Steps