User Create

Updated 2 years ago by Admin

Creates a user. Please note this api requires administrative privileges.

POST /api/users

Example Request Body:

1  {
2 "login": "octocat",
3 "email": "octocat@github.com",
4 "avatar_url": "http://www.gravatar.com/avatar/7194e8d48fa1d2b689f99443b767316c",
5 "active": true
6 }

Example Response Body:

1  {
2 "id": 1,
3 "login": "octocat",
4 "email": "octocat@github.com",
5 "avatar_url": "http://www.gravatar.com/avatar/7194e8d48fa1d2b689f99443b767316c",
6 "active": true,
7 "admin": false,
8 "machine": false,
9 "syncing": false,
10 "synced": 1564096971,
11 "created": 1564096971,
12 "updated": 1564096971,
13 "last_login": 1564096971
14 }


How did we do?