# update()

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

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

وَلَا يَتَغَيَّرُ ٱلْمَسِيحِيُّونَ .

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

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

## لماذا تم تثبيت الكس : {#why}

> **تغييره سيكسر ثلاثة أشياء مرة واحدة**
>
> فالوصلات التي سبق تقاسمها ، وميدان العميل الملحق بها ، والشهادة الصادرة لذلك الاسم المضيف .

## لعنوان آخر، ولضيف آخر {#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.
```

## ما هو الغرض من هذا الوصف {#label}

لا شيء يعتمد عليه ، لذلك تغييره آمن ، وهذا هو بالضبط السبب في انه المجال الوحيد الذي يمكن ان يتغير .

## إنه يُحدث الجسم {#object}

`host.label` استبدل بما عاد

- [create()](/ar/sdk/ref/hosts/create): -تُخَوِّطُ a رصاصة.
- [domains.attach()](/ar/sdk/ref/host/domains/attach): عنوان خاص بك.

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