# update()

Canonical URL: https://developers.iagenify.com/fr/sdk/ref/host/update/
Language: fr

`host.update({ label }) → Promise<Host>`

Renomme l'hôte. L'étiquette seulement — la limace est l'adresse, et elle ne change pas.

Status: PATCH · label only · the slug is the URL

```javascript
await site.update({ label: "Portfolio (2026)" });
```

## Pourquoi la limace est réparée {#why}

> **Changer ça briserait trois choses à la fois**
>
> Les liens sont déjà partagés, le domaine client y est attaché et le certificat délivré pour ce nom d'hôte. Aucun des trois échoue à haute voix — ils arrêtent de fonctionner.

## Pour une autre adresse, un autre hôte {#another}

```javascript
const next = await api.hosts.create({ kind: "site", slug: "portfolio-2026", label: "Portfolio" });
await next.deploy({ files: "./out" });
// Then move the domain, and remove the old host when nothing points at it.
```

## À quoi sert l'étiquette? {#label}

Rien ne dépend de cette liste, donc changer est sûr — c'est exactement pourquoi c'est le seul champ qui peut changer.

## Il met à jour l'objet {#object}

`host.label` est remplacé par ce qui est revenu.

- [create()](/fr/sdk/ref/hosts/create): Choisir une limace.
- [domains.attach()](/fr/sdk/ref/host/domains/attach): Une adresse à vous.

```python
site.update(label="Portfolio (2026)")
```

```python
nxt = api.hosts.create(runtime="static", slug="portfolio-2026", label="Portfolio")
nxt.deploy(files="./out")
# Then move the domain, and remove the old host when nothing points at it.
```
