Ploi API

Create daemon

Creates a new daemon in the server

POST api/servers/{server}/daemons


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
directory string optional The directory the daemon should use

Example request:

curl -X POST "{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,
        "system_user": "ploi",
        "directory": null,
        "status": "created"