# Update domain forwarding

`PUT /v1/domain/@id/forwarding` · scope `domains:write`

Set up forwarding for the domain.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/domain/@id/forwarding` |
| Method | `PUT` |
| Scope | `domains:write` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | — (no body) |
| Tokens that can call it | app tokens (`tinoat_`), personal API tokens (`tinopat_`) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Domain ID |

## Example request

```bash
curl -X PUT "https://api.tino.vn/v1/domain/200001/forwarding" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` is a token with the scope `domains:write`. Path parameters in the example are sample values.

SDK ([SDK & examples](/en/docs/sdk)): Python `client.domains.update_forwarding(id, id=...)`, Node.js `await client.domains.updateForwarding(id, { id: ... });`, PHP `$client->domains->updateForwarding($id, ['id' => ...]);`.

## Example response

```json
[]
```

Live sample from a test account with personal data masked; long arrays and strings are trimmed (`… N more item(s)`, `… N more line(s)`).
