API referenceSections

Give the site a fresh worker; requests in flight finish first

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

POST /api/v1/tenants/{tid}/sites/{id}/recycle may answer 202

Give the site a fresh worker; requests in flight finish first

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

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

Responses

202 Accepted but not done yet (ADR 0128); follow pending_job.

HeaderTypeDescription
Locationstring

The job to follow

Content type: application/json

object
  • pending_job PendingJob required

    A job the panel accepted a change with and has not finished (ADR 0128).

    • id string required
    • kind string required
    • url string required

      GET it for the job's state: queued, leased, succeeded or failed (error_code).

Example
{
  "pending_job": {
    "id": "string",
    "kind": "string",
    "url": "string"
  }
}

204 Recycled

default Error

Content type: application/json

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