# PUT /api/auth/profile

Canonical URL: https://developers.iagenify.com/api/auth/profile/
Language: en

`PUT https://api.iagenify.com/api/auth/profile`

Update supplied profile fields for the authenticated account. Fields omitted from the request remain unchanged.

Status: Bearer or API key · JSON · writes account

## HTTP request {#http}

```bash
curl https://api.iagenify.com/api/auth/profile \
  -X PUT \
  -H "Authorization: Bearer $IAGENIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prenom":"Ada","nom":"Lovelace","ville":"London"}'
```

## JavaScript {#javascript}

```javascript
const response = await fetch("https://api.iagenify.com/api/auth/profile", {
  method: "PUT",
  headers: { Authorization: `Bearer ${process.env.IAGENIFY_TOKEN}`, "Content-Type": "application/json" },
  body: JSON.stringify({
  "prenom": "Ada",
  "nom": "Lovelace",
  "ville": "London"
}),
});
const result = await response.json();
if (!response.ok) throw new Error(result.error);
```

## Python {#python}

```python
import os, requests

response = requests.request(
    "PUT",
    "https://api.iagenify.com/api/auth/profile",
    headers={"Authorization": "Bearer " + os.environ["IAGENIFY_TOKEN"]},
    json={
  "prenom": "Ada",
  "nom": "Lovelace",
  "ville": "London"
},
    timeout=30,
)
response.raise_for_status()
result = response.json()
```

## Request body {#body}

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `nom` | string |  | Family name. |
| `prenom` | string |  | Given name. |
| `genre` | string |  | Profile gender value. |
| `tel` | string |  | Telephone number. |
| `adresse` | string |  | Postal address. |
| `ville` | string |  | City. |

## Successful response {#response}

```javascript
{ ok: true, user: { id: "…", prenom: "Ada", nom: "Lovelace" } }
```

> **Send only intentional changes**
>
> Empty values are ignored by this endpoint. Do not send a whole cached profile when only one field was edited.

> **Passwords are not a public API operation**
>
> Use the signed-in account settings to change a password. Supplying `password` here returns `403 password_change_private`.
