Create user

Create a user in your system

POST api/users

Parameters

ParameterTypeStatusDescription
namestringrequiredMaximum: 255
emailstringrequiredMaximum: 255
package_idnull or intoptionalMust be the id of an existing package.
blockednull or stringoptionalUnsuspend 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":"[email protected]"}'