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-settingsSet the preview domain, certificates and the database copy limit
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
domainstring requiredPreviews are named <slug>.<domain>; *.<domain> must point to the servers. Empty: no new previews
certificatesboolean requiredAsk Let's Encrypt for each preview's name
max_copy_mbinteger requiredLargest 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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required