Skip to main content
Enable or update Actions defaults for a repository

Authorizations

Authorization
string
header
required

BoxRouter API key; never an upstream provider key.

Headers

X-CSRF-Token
string

Session-bound CSRF token. Required for browser-session calls, together with a matching configured Origin header; omit it when calling with an API key.

If-Match
string

Required when replacing an existing settings record; omit only to create the default record.

Required string length: 1 - 256
Pattern: ^[^\u0000]*$
Idempotency-Key
string

Optional for this operation. Preserve the same stable identifier when retrying an uncertain response; never reuse it for new work. If omitted where allowed, Cloud generates a request-scoped key that cannot reconcile a later retry. Do not include credentials or payloads. Stable identifier for one logical mutation.

Required string length: 1 - 128

Path Parameters

repository_id
string
required

Stable GitHub repository ID bound to this workspace; owner/name is not an identifier.

Required string length: 1 - 128
Pattern: ^[^\u0000]*$

Body

application/json
enabled
boolean
required
policy_id
string | null

Optional workspace-owned policy. Omission or null selects automatic safe defaults.

Required string length: 1 - 128
Pattern: ^[^\u0000]*$

Response

Current settings revision; image preparation may still be in progress.

repository_id
string
required
Required string length: 1 - 128
Pattern: ^[^\u0000]*$
exists
boolean
required

False only when no settings record exists; omit If-Match for its first write. True means If-Match is required.

enabled
boolean
required
policy_id
string | null
required
Required string length: 1 - 128
Pattern: ^[^\u0000]*$
state
enum<string>
required
Available options:
disabled,
preparing,
ready,
attention_required
default_label
string
required

The repository's selected BoxRouter runner label.

Required string length: 1 - 128
revision
integer
required
Required range: x >= 1
updated_at
string<date-time>
required
resolved_profile
enum<string>
read-only

Effective software profile resolved by GET from the saved repository policy, or linux-basic when no policy is selected. With exists=false this is the default, not a saved configuration. This does not claim image or route readiness. May be absent on older servers and write or idempotent replay responses; GET is authoritative. It does not change the settings CAS token.

Available options:
linux-basic,
full
reason_code
string | null

Optional machine-readable reason for a non-ready repository state.

Maximum string length: 128
Pattern: ^[a-z][a-z0-9_.-]{0,127}$
message
string | null

Optional plain-language explanation of the current repository state.

Required string length: 1 - 512

Optional destination when the repository state can be fixed in another page.

Available options:
byok,
credits,
null