put_user.md 583 Bytes
Newer Older
thibaut-felten's avatar
thibaut-felten committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
# 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"`