API referenceSections

Set the preview domain, certificates and the database copy limit

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/preview-settings

Set the preview domain, certificates and the database copy limit

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

  • domain string required

    Previews are named <slug>.<domain>; *.<domain> must point to the servers. Empty: no new previews

  • certificates boolean required

    Ask Let's Encrypt for each preview's name

  • max_copy_mb integer required

    Largest live database a preview may copy, MB

    • minimum 1
Example
{
  "domain": "string",
  "certificates": true,
  "max_copy_mb": 1
}

Responses

200 Saved

Content type: application/json

Fields of PreviewProvider are shown above.

Example
{
  "domain": "string",
  "certificates": true,
  "max_copy_mb": 1
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required