Ploi API
Ploi API

Pause daemon

Pause a daemon from your server

POST api/servers/{server}/daemons/{daemon}/toggle-pause

Example request:

curl -X POST "https://ploi.io/api/servers/{server}/daemons/{daemon}/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"
    }
}