Create system user

Create a script

POST api/servers/{server}/system-users

Parameters

Parameter Type Status Description
name string required The name of the system users you want to create

Example request:

curl -X POST "https://ploi.io/api/servers/1/system-users" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
   --data '{"name":"customer"}'

Example response:

HTTP/1.1 201 CREATED
Content-Type: application/json

{
    "data": {
        "id": 1,
        "name": "customer",
        "root": "/home/customer",
        "created_at": "2020-01-01 12:00:00"
    }
}