Skip to main content
POST
Write a file into the sandbox

Authorizations

Authorization
string
header
required

An API key from your Devic console, sent as Authorization: Bearer <key>. An embedded front end sends a tenant-session token instead, so no API key reaches the browser, and an OAuth integration sends its access token. Missing, invalid or expired credentials get a 401. See Authentication.

Path Parameters

environmentId
string
required

Environment id

Body

application/json
sandboxId
string
required

Sandbox to write to

destinationPath
string
required

Path to write

Example:

"/workspace/report.sql"

content
string

Inline UTF-8 text. Mutually exclusive with sourceUrl.

sourceUrl
string

URL to fetch the bytes from. Mutually exclusive with content.

Response

Success