Ploi Core

Create user

Create a user in your system

POST api/users

Parameters

Parameter Type Status Description
name string required Maximum: 255
email string required Maximum: 255
package_id null or int optional Must be the id of an existing package.
blocked null or string optional Unsuspend a user by passing null or "". Suspend a user by passing a string message, which is shown to the user.

Example request:

curl -X POST "https://panel.examplehosting.com/api/users" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
   --data '{"name":"John Doe", "email":"john@doe.com"}'