Skip to main content
POST
Add a repository to an environment

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
repositoryId
string
required

The repository databaseId from GET /repos.

baseBranch
string
default:main

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