Command
Send a command to a process
There are basically two commands you can give to a process: start or stop. This is the order for the process.
Additionally to these two commands are the commands restart which is sending a stop followed by a start command packed in one command, and reload which is the same as if you would update the process config with itself, e.g. in order to update references to another process.
startthe process. If the process is already started, this won't have any effect.stopthe process. If the process is already stopped, this won't have any effect.restartthe process. If the process is not running, this won't have any effect.reloadthe process. If the process was running, the reloaded process will start automatically.
Example:
curl http://127.0.0.1:8080/api/v3/process/test \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-X PUT \
-d '{
"command": "stop"
}'Description:
Issue a command to a process: start, stop, reload, restart
Process ID
OK
Bad Request
Not Found
PUT /api/v3/process/{id}/command HTTP/1.1
Host: /
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"command": "start"
}textLast updated
Was this helpful?
