> For the complete documentation index, see [llms.txt](https://developer.acquire.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.acquire.io/rest-apis/settings/account-settings/account-user-agent/update.md).

# Update

## Update

<mark style="color:orange;">`PUT`</mark> `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} |

{% tabs %}
{% tab title="200 " %}

```
{
  "data": [
    {
      "firstName": "QA teams",
      "lastName": "",
      "id": 24,
      "type": "user",
      "status": "active",
      "lastLoginId": null,
      "parentId": null,
      "ownerId": null,
      "name": "QA teams",
      "email": "testings@acquire.io",
      "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": []
    }
  ]
}
```

{% endtab %}
{% endtabs %}

## Body(raw)

```
{
  "id": "24",
  "name": "QA teams",
  "email": "qateams@acquire.io",
  "type": "user",
  "status": "active",
  "password": "Acquire@2020",
  "newPwd": "Acquire@2020",
  "phone": "+91-7418529632",
  "stateId": "ALV",
  "countryId": "291",
  "photo": "WzgxLCJjaGF0L2QwbXdmbGkxcWN1LWRhcmstbG9nby0xNT",
  "departments": [
    1
  ],
  "roles": [
    1
  ],
  "additionalProp1": {}
}
```
