Create Daemon

Creates a new daemon in the server

POST api/servers/{server}/daemons

Parameters

Parameter Type Status Description
command string required Maximum: 150
system_user string required Must be a user present in your system (E.g. "ploi" or "root")
processes integer required Must be a number of total processes to spawn

Example request:

curl -X POST "https://ploi.io/api/servers/{server}/daemons" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data '{"command":"echo 123", "system_user": "ploi", "processes": 1}'

Example response:

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