Replace an environment's settings
The deploy window is the default for the environment's pipeline stages; a stage may narrow it, never widen it. Notification targets are stored as configuration and nothing is delivered to them yet. The settings of an archived environment cannot be changed.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
environmentId*stringuuidIdempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
deployWindow*|nullnotificationTargets*array<>items <= 20terminalAccess?TerminalAccessWho may open a terminal in the pods of the environment's deployments. deployers is everyone who may manage the deployment; named is only people who were given the pod:exec duty by name. Leaving it out of a change keeps the current choice.
"deployers""named"terminalNotifyOwner?booleanLeaving it out keeps the current choice.
The updated settings.
application/json- response
deployWindow*|Null while deployments may start at any time.
notificationTargets*array<>terminalAccess*TerminalAccessWho may open a terminal in the pods of the environment's deployments. deployers is everyone who may manage the deployment; named is only people who were given the pod:exec duty by name. Leaving it out of a change keeps the current choice.
"deployers""named"terminalNotifyOwner*booleanWhether the team that owns a deployment is told when someone opens a terminal in its pods. On until turned off.
updatedAt*|Null while the environment has the defaults.
date-timecurl -X PUT 'https://wardn.example.com/api/v1/environments/497f6eca-6276-4993-bfeb-53cbbbba6f08/settings' \ -H 'Content-Type: application/json' \ -d '{ "deployWindow": { "days": [ "mon" ], "start": "09:00", "end": "17:00", "timeZone": "Europe/Berlin" }, "notificationTargets": [ { "kind": "slack", "target": "string" } ]}'{ "deployWindow": { "days": [ "mon" ], "start": "09:00", "end": "17:00", "timeZone": "Europe/Berlin" }, "notificationTargets": [ { "kind": "slack", "target": "string", "what": "changes", "enabled": true } ], "terminalAccess": "deployers", "terminalNotifyOwner": true, "updatedAt": "2019-08-24T14:15:22Z"}Get an environment's settings GET
Previous Page
List the pipelines that move snapshots into an environment GET
The pipelines the caller reads that have a stage in the environment, by name: where the stage takes snapshots from, its rules, the newest run that reached it and how many deployments of the pipeline's apps are there (those the caller may read). Pipelines out of reach are not listed.