{
"command": "string",
"directory": "string",
"environ": [
"string"
],
"name": "string",
"namespace": "string",
"pm2": {},
"ports": [
0
],
"repo": "string",
"retrySeconds": 0,
"startAuto": true,
"startRetries": 0,
"startSeconds": 0,
"stopTimeout": 0,
"user": "string",
"version": "string"
}
curl --location --request POST '/api/win/pg/service' \
--header 'Authorization: {{ACCESS_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"command": "string",
"directory": "string",
"environ": [
"string"
],
"name": "string",
"namespace": "string",
"pm2": {},
"ports": [
0
],
"repo": "string",
"retrySeconds": 0,
"startAuto": true,
"startRetries": 0,
"startSeconds": 0,
"stopTimeout": 0,
"user": "string",
"version": "string"
}'
{
"status": "OK"
}