Skip to main content
PUT
Write one secret file

Authorizations

Authorization
string
header
required

Boat bearer token in the form boat_.... Service API keys authenticate sandbox operations.

Path Parameters

environmentId
string<uuid>
required

Body

application/json
path
string
required

In-sandbox path relative to the workspace, e.g. .env or repo/.env.

contents
string
required

Response

New version minted.

Result of a granular environment change. Every change mints a new immutable version holding just that delta; existing sandboxes stay pinned until upgraded.

success
boolean
required
versionId
string

Id of the newly minted environment version. This is a version id, not the environment's own id: the environment id you passed in the path is unchanged.

versionNumber
integer