> For the complete documentation index, see [llms.txt](https://magicpay.gitbook.io/magicpay-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magicpay.gitbook.io/magicpay-documentation/users/update-user.md).

# Update User

## 2.3 Update User

**Request**

| Method | URL                           |
| ------ | ----------------------------- |
| PATCH  | /merchant/v1/users/{user\_id} |

```
{
  "email": "updateduser@example.com",
  "name": "Updated User",
  "password": "updateduserpassword"
}
```

**Response**

| Status | Response                                                                                                                                                                                                                  |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | <p>{</p><p>"id": 1,</p><p>"email": "<updateduser@example.com>",</p><p>"name": "Updated User",</p><p>"merchantId": 123,</p><p>"createdDate": "2022-01-01T12:00:00",</p><p>"updatedDate": "2022-01-02T15:30:00"</p><p>}</p> |
| 403    |                                                                                                                                                                                                                           |
| 400    |                                                                                                                                                                                                                           |
| 401    |                                                                                                                                                                                                                           |
| 401    |                                                                                                                                                                                                                           |
| 500    |                                                                                                                                                                                                                           |

[<br>](https://hilals-organization.gitbook.io/magicpay-documentation/2.users/2.2-create-user)
