Skip to main content
PUT
Write one secret file

Authorizations

Authorization
string
header
required

Box bearer token in the form box_.... Service API keys authenticate Box operations.

Path Parameters

environmentId
string<uuid>
required

Body

application/json
path
string
required

In-box 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 boxes 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