API referenceSections

PreviewSettingsInput

PreviewSettingsInput object
  • enabled boolean required
  • branches array<string> optional
    • max items 20
  • pull_requests boolean optional
  • gate string optional
    Allowed values: "" "password" "panel"
  • gate_user string optional
  • gate_password string | null optional

    Null keeps the stored one

  • database string optional
    Allowed values: "" "none" "empty" "copy"
  • database_id string optional
  • idle_days integer optional

    0 is the default, 7

    • minimum 0
    • maximum 90
  • env array<object> optional
    • max items 100
    • name string required
    • value string | null optional
    • secret boolean required
  • copy_env array<string> optional
    • max items 50
  • report boolean optional

Used by

PUT/api/v1/tenants/{tid}/sites/{id}/preview-settingsSave a live site's preview settings; previews take them at their next update