cURL
curl --request PUT \ --url https://api.example.com/api/v1/vm/{vm_id}/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "content_b64": "<string>", "path": "<string>", "create_dirs": true, "mode": 1 } '
{ "error": "<string>", "success": true }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
VM ID
Request body for PUT /api/vm/{vm_id}/files
File contents, base64-encoded.
Destination path on the VM.
Create parent directories if they don't exist.
File mode (e.g. 0644). Defaults to 0644 if omitted.
x >= 0
File written successfully
Contact support