Environments
PreviewGet an environment's protected-branch guardrail
Whether the environment takes snapshots only from a protected branch, and which. An environment nobody configured follows its class: production is guarded.
GET
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
environmentId*stringFormat
uuidThe guardrail in force.
application/json- response
enforced*booleanprotectedBranch*stringThe branch snapshots must come from. Empty means the branch the git host protects.
isDefault*booleanTrue when nobody set it and the environment's class decides.
curl -X GET 'https://wardn.example.com/api/v1/environments/497f6eca-6276-4993-bfeb-53cbbbba6f08/branch-guard'Example Response
{ "enforced": true, "protectedBranch": "string", "isDefault": true}List the apps in an environment that no pipeline carries GET
They reach the environment some other way. Each has its team, its deployments there that the caller may read and the promotions to them in the last 30 days. Not paged: it holds the apps of one environment.
Set an environment's protected-branch guardrail PUT
Next Page