Update
Update a user
Update
PUT
https://{{account_id}}.acquire.io/api/v1/account/user/{{userId}}
Update a user's information. Their userId must be passed in to the endpoint as a path parameter.
Path Parameters
Name
Type
Description
userId
integer
ID of the user
Headers
Name
Type
Description
Authorization
string
Bearer {api_key}
{
"data": [
{
"firstName": "QA teams",
"lastName": "",
"id": 24,
"type": "user",
"status": "active",
"lastLoginId": null,
"parentId": null,
"ownerId": null,
"name": "QA teams",
"email": "[email protected]",
"phone": "+91-7418529632",
"photo": null,
"inviteToken": null,
"language": null,
"clientId": null,
"clientAppId": null,
"clientAuthorizer": null,
"clientPermissions": null,
"stateId": "ALV",
"countryId": "291",
"dateCreated": "2021-03-22T10:37:37.000Z",
"meta": {
"onboard_setup": {
"install": false,
"welcome": false,
"setupMail": false,
"setupVoip": false,
"setupAppStore": false,
"setupSocialApp": false
}
},
"roles": [
{
"id": 1,
"roleName": "Administrator",
"permissions": [
"*/*"
],
"permissionType": null,
"meta": null
}
],
"departments": []
}
]
}
Body(raw)
{
"id": "24",
"name": "QA teams",
"email": "[email protected]",
"type": "user",
"status": "active",
"password": "Acquire@2020",
"newPwd": "Acquire@2020",
"phone": "+91-7418529632",
"stateId": "ALV",
"countryId": "291",
"photo": "WzgxLCJjaGF0L2QwbXdmbGkxcWN1LWRhcmstbG9nby0xNT",
"departments": [
1
],
"roles": [
1
],
"additionalProp1": {}
}
Last updated