Update pipeline preview settings
Update the preview stage configuration for a pipeline. You can set the preview app settings (cluster, build, processes, TCP proxies, disks, hibernation, environment variables), change the auto-create behavior and stale app cleanup, or switch the connected Git repository. Fields you leave out keep their current values, but preview_app replaces the whole preview app configuration. Turning on auto_create_app requires the preview app settings.
Authorizations
API key authentication. Pass your API key as a Bearer token in the Authorization header.
Path Parameters
Pipeline identifier
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Body
Git repository URL. When provided and different from the current repository, the pipeline switches to the new repository.
"https://github.com/user/repo"
Automatically create a preview app when a pull request is opened. Turning this on requires the preview app settings, either sent in preview_app or saved earlier. Returns 400 when they are missing.
true
Automatically delete preview apps that have not been deployed for longer than the stale app threshold
true
Number of days after the last deployment before a preview app is considered stale
1 <= x <= 3657
Configuration that every new preview app is created from. Sending it replaces the whole previous configuration, including anything set in the dashboard. Preview apps that already exist are not changed.
Response
Default Response
Confirmation message
"Pipeline preview settings updated"