API Method: /api/user/create
Set up a new user in the site.
Parameters
Parameter | Description |
---|---|
email (required) | The email address of the user to be created. |
username | The user's username. |
password | The user's password. |
full_name | The user's full name. |
timezone | The user's timezone. |
site_admin |
Is the user to be an administrator? Valid values: 0 or 1 |
Permission level
The minimum required permission level is:
admin
Example XML Response
<response status="ok" permission_level="super"
message="The user has been created" cached="0">
<user_id>60434</user_id>
<email>clinton@example.com</email>
<username>clinton</username>
<full_name>Bill Clinton</full_name>
<site_admin>0</site_admin>
<timezone>Europe/Copenhagen</timezone>
</response>
Example JSON Response
{
"status": "ok",
"message":"The user has been created",
"permission_level":"super",
"cached":"0",
"user":{"user_id": "60434", "email": "clinton@example.com", "username": "clinton",
"full_name": "Bill Clinton", "site_admin": "0", "timezone": "Europe/Copenhagen"},
"p": "1",
"size": "1",
"site": { ... },
"endpoint": "/api/photo/upload"
}