Ploi API

Pause queue worker

Pause a queue worker in your site

POST api/servers/{server}/sites/{id}/queues/{queueId}/toggle-pause

Example request:

curl -X POST "https://ploi.io/api/servers/{server}/sites/{id}/queues/{queueId}/toggle-pause" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "data": {
        "id": 1,
        "command": "echo 123",
        "processes": 1,
        "status": "active"
    }
}