# PUT User

Used to update a new user

**URL** : `/api.php/user/{id}`

**Method** : `PUT`

**Auth required** : YES

**Data constraints**

```json
{
    "USER_LOGIN":"[login which does not already exists]",
    "USER_EMAIL":"[valid email address]",
    "USER_FIRSTNAME":"[First name of the user]",
    "USER_LASTNAME":"[Last name of the user]"
}
```

**Data example**

```json
{
    "USER_LOGIN":"test",
    "USER_EMAIL":"test@example.com",
    "USER_FIRSTNAME":"test",
    "USER_LASTNAME":"test"
}
```

## Success Response

**Code** : `200 OK`

**Content example**

`"User updated"`
