Category Filter
Create User
Create a new user.
Argument | Type | Description | Default value |
---|---|---|---|
name | String | Required. The display name of the user | |
String | Required. Unique email address of the user | ||
phoneno | Integer | Optional. The contact number of the user | null |
password | String | Optional. User password | null |
curl
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 10 11 |
POST https://<portal>.hexnodemdm.com/api/v1/users/ headers:- Authorization: api key Content-Type: application/json Sample Post Data:- [{ "name": "Neil", "email":"neil@hexnode.com", "phoneno":"18664989407", "password":"admin" }] |
Shell Command:
1 |
curl -H "Authorization:<your API key>" -H "Content-Type: application/json" -d '[{ "name": "Neil","email":"neil@hexnode.com", "phoneno":"18664989407","password":"admin" }]' https://<portal>.hexnodemdm.com/api/v1/users/ |
HTTP Response:
1 2 3 4 5 6 7 8 9 10 11 |
HTTP/1.1 201 Created [ { "id": 13, "name": "Neil", "email": "neil@hexnode.com", "phoneno": "18664989407", "alternate_email": null, "password": null } ] |