API referenceSections

Change a worker; its processes start again

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

PUT /api/v1/tenants/{tid}/sites/{id}/workers/{worker}

Change a worker; its processes start again

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
workerpathstringrequired
X-CSRF-Tokenheaderstringoptional

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

Request body

required

Content type: application/json

  • name string required
    • max length 80
  • kind string required
    Allowed values: "laravel-queue" "command"
  • laravel WorkerLaravel | null optional
    • connection string required

      Queue connection, empty for the default

    • queues array<string> required
      • max items 10
    • tries integer required
      • minimum 0
      • maximum 100
    • timeout integer required
      • minimum 0
      • maximum 3600
    • sleep integer required
      • minimum 0
      • maximum 60
    • backoff integer required
      • minimum 0
      • maximum 3600
    • max_jobs integer required
      • minimum 0
    • max_time integer required
      • minimum 0
      • maximum 86400
    • memory_mb integer required
      • minimum 0
      • maximum 4096
  • script string optional

    command: the file to run, relative to the release (an application) or the website's files (PHP: a .php file). Empty runs the application's own program with args.

  • args array<string> optional
    • max items 32
  • instances integer optional
    • minimum 1
    • maximum 8
  • cpu_percent integer optional

    0: the website's own cap

    • minimum 0
    • maximum 100
  • memory_mb integer optional

    Per process; 0: 512 MB or the website's cap if lower

    • minimum 0
    • maximum 65536
  • enabled boolean optional
Example
{
  "name": "string",
  "kind": "laravel-queue",
  "laravel": {
    "connection": "string",
    "queues": [
      "string"
    ],
    "tries": 0,
    "timeout": 0,
    "sleep": 0,
    "backoff": 0,
    "max_jobs": 0,
    "max_time": 0,
    "memory_mb": 0
  },
  "script": "string",
  "args": [
    "string"
  ],
  "instances": 1,
  "cpu_percent": 0,
  "memory_mb": 0,
  "enabled": true
}

Responses

200 Worker

Content type: application/json

  • id string required
  • site_id string required
  • name string required
  • kind string required
    Allowed values: "laravel-queue" "command"
  • laravel WorkerLaravel | null required

    Fields of WorkerLaravel are shown above.

  • script string required
  • args array<string> required
  • instances integer required
  • cpu_percent integer required
  • memory_mb integer required
  • enabled boolean required
  • generation integer required
  • created_at string (date-time) required
  • updated_at string (date-time) required
Example
{
  "id": "string",
  "site_id": "string",
  "name": "string",
  "kind": "laravel-queue",
  "laravel": {
    "connection": "string",
    "queues": [
      "string"
    ],
    "tries": 0,
    "timeout": 0,
    "sleep": 0,
    "backoff": 0,
    "max_jobs": 0,
    "max_time": 0,
    "memory_mb": 0
  },
  "script": "string",
  "args": [
    "string"
  ],
  "instances": 0,
  "cpu_percent": 0,
  "memory_mb": 0,
  "enabled": true,
  "generation": 0,
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z"
}

default Error

Content type: application/json

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