Skip to main content
POST
Select repository for Boxes

Authorizations

Authorization
string
header
required

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

Body

application/json

Idempotently selects a repository for future Boxes. If the repository is already selected, the API updates its base branch instead of returning a conflict.

repositoryId
string
required

Internal repository databaseId returned by GET /repos.

baseBranch
string
default:main

Response

Updated repository selection.

ok
boolean
required
Example:

true

type
string
required

Stable success envelope discriminator added by v1.

success
boolean
required
environmentId
string
required
selectedRepositories
object[]
required