Update User
Use this API to update details of an individual user.
HTTP REQUEST
PUT /user/{userId}/update
PATH PARAMETERS
| userId required |
string | A single user Id |
QUERY STRING PARAMETERS
| firstName | string | First Name |
| lastName | string | Last Name |
| companyName | string | CompanyName |
| department | integer | Department ID |
| designation | integer | Designation ID |
| mobile | string | Contact Number |
| city | integer | City ID |
| state | integer | State ID |
| country | integer | Country ID |
| timezone | string | Timezone |
| language | string | Language eg: en-US |
| status | int | 1 – Enable, 0 – Disable, 2 – Delete |
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": null,
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}
| Field | Type | Description | userId | string | Token |
| Code | Description |
| 1001 | ‘Missing userId’ |
| 1002 | ‘Invalid userId’ |
| 1008 | ‘Invalid firstName’ |
| 1010 | ‘Invalid lastName’ |
| 1012 | ‘Invalid department’ |
| 1014 | ‘Invalid designation’ |
| 1015 | ‘Invalid mobile’ |
| 1016 | ‘Missing city/state/country’ |
| 1017 | ‘Invalid city/state/country’ |
| 1022 | ‘Missing mobile’ |
| 1038 | ‘Missing timezone’ |
| 1039 | ‘Invalid timezone’ |
| 1040 | ‘Missing language’ |
| 1041 | ‘Invalid language’ |
| 1042 | ‘Missing status’ |
| 1043 | ‘Invalid status’ |
For general error details, click here.