POST /users
Create users
Request Headers
| Name | Type | Required or Optional | Description |
|---|---|---|---|
| token | string | required | Access Credentials Token |
Request Body
| Name | Type | Required or Optional | Description |
|---|---|---|---|
| account | string | required | user id |
| password | string | required | password |
| realname | string | optional | real name |
| visions | array | optional | interface ["rnd", "lite"]. ( Notes: in the ZenTao Opensource 18.0, Biz 8.0, Max 4.0 and above versions, the "rnd" is for full feature interface and the "lite" is for operation management interface, while in the other versions, the "rnd" is for R&D interface and the "lite" is for lightweight interface. In summary, no matter what version, if you want to call API, you have to pass "rmd" and "lite") |
Request Example
{"account": "usertest", "password": "123qwe!@#", "realname": "testuser"}
Request Response
| Name | Type | Required or Optional | Description |
|---|---|---|---|
| id | int | required | user id |
| type | string | required | type (inside, internal users|outside, external users) |
| dept | int | optional | department |
| account | string | required | user name |
| gender | string | required | gender (f, female,|m, male) |
| string | string | optional | real name |
Response Example
{
"id": 8,
"company": 0,
"type": "inside",
"dept": 0,
"account": "usertest",
"role": "",
"realname": "testuser",
"pinyin": "",
"nickname": "",
"commiter": "",
"avatar": "",
"birthday": "0000-00-00",
"gender": "f",
"email": "",
"skype": "",
"qq": "",
"mobile": "",
"phone": "",
"weixin": "",
"dingding": "",
"slack": "",
"whatsapp": "",
"address": "",
"zipcode": "",
"nature": "",
"analysis": "",
"strategy": "",
"join": "0000-00-00",
"visits": 0,
"visions": "rnd",
"ip": "",
"last": "1970-01-01T00:00:00Z",
"fails": 0,
"locked": null,
"feedback": "0",
"ranzhi": "",
"ldap": "",
"score": 0,
"scoreLevel": 0,
"deleted": "0",
"clientStatus": "offline",
"clientLang": "zh-cn"
}