Create a Owner
Parameter | Description | Required |
---|---|---|
action | addPlantOwner | True |
usr | Account name to register | True |
pwd | Password, a hexadecimal lowercase string encrypted by RC4 (SECRET, SHA-1 (PWD)) | True |
False | ||
mobile | Phone | False |
qname | Nickname | False |
photo | Avatar, uploaded avatar image address | False |
cname | company name | False |
ctel | company phone | False |
rid | Custom Role ID | False |
desc | Description | False |
source | source | True |
response: No text
{
"err":0,
"desc":"ERR_NONE"
}
possible errors:
Response error code | Description | Details |
---|---|---|
0x0007 | ERR_MISSING_PARAMETER | Missing necessary parameters |
0x0010 | ERR_PASSWORD_VERIF_FAIL | Password verification failed (encryption error) |
0x0011 | ERR_PASSWORD_FORMAT_ERROR | Password format error |
0x0013 | ERR_MOBILE_FORMAT | Phone number format error |
0x0014 | ERR_EMAIL_FORMAT | Email format error |
0x0015 | ERR_USRNAME_FORMAT | User name format error |
0x0170 | ERR_NOT_FOUND_DEFINEDROLE | Role not found |
0x0207 | ERR_USR_EXISTED | User already exists |