# update()

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

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

Renomina l'host. La etiqueta solamente — la lima è l'indirizzo, e non cambia.

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

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

## Por qu'è fixè la lima {#why}

> **Cambiando di tre cose spezzaria contemporaneamente tre**
>
> Links ya condivisi, il dominio del cliente ad esso attachò, e il certificate emitat per quel hostname.Ninguna delle tre fa coltre brûle — s'absolu stunt.

## Per un altro address, un altro host {#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.
```

## Para qu' serve l'etiqueta {#label}

Mostrando in una lista. Nada depende dela, quindi cambiarla è sicuro — e è proprio per questo che è un campo che può cambiare.

## Aggiorna l'oggetto {#object}

`host.label` è sostituito con quello che è tornato.

- [create()](/pt/sdk/ref/hosts/create): Elegir un lima.
- [domains.attach()](/pt/sdk/ref/host/domains/attach): Un addresse di te.

```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.
```
