API referenceSections

Change it (server.manage); websites already deleted keep their date

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

PUT /api/v1/tenants/{tid}/site-retention

Change it (server.manage); websites already deleted keep their date

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

  • days integer required

    0 purges at the next minute; default 7

    • minimum 0
    • maximum 90
Example
{
  "days": 0
}

Responses

200 Saved

Content type: application/json

Fields of SiteRetention are shown above.

Example
{
  "days": 0
}

default Error

Content type: application/json

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