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 202Give the site a fresh worker; requests in flight finish first
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | 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.
| Header | Type | Description |
|---|---|---|
Location | string | The job to follow |
Content type: application/json
object
A job the panel accepted a change with and has not finished (ADR 0128).
idstring requiredkindstring requiredurlstring requiredGET 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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required