cURL
curl --request POST \ --url https://api.gravixlayer.com/v1/agents/sandboxes/{sandbox_id}/files/write \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "path": "<string>", "content": "<string>" } '
{ "message": "<string>" }
Writes content to a file
API key authentication. Get your API key from the Gravix Layer Dashboard.
Sandbox ID
Absolute path to the file inside the sandbox.
Example valid prefixes from your sandbox check: /root/ or /workspace/
Content to write to the file
File written