---
title: "Update domain forwarding"
method: PUT
path: "/api/domains/v1/forwarding/{domain}"
tags: ["Domains: Forwarding"]
---

# Update domain forwarding

`PUT /api/domains/v1/forwarding/{domain}`

Update domain forwarding configuration.

Use this endpoint to modify existing redirect configuration for domains.

## Path parameters

- `domain` string, required

## Request body

- DomainsV1ForwardingUpdateRequest
  - `redirect_type` '301' | '302', required — Redirect type
  - `redirect_url` string, required — URL to forward domain to

## Response `200`

Success response

- DomainsV1ForwardingForwardingResource
  - `domain` string, nullable — Domain name
  - `redirect_type` '301' | '302' — Redirect type
  - `redirect_url` string — URL domain is forwarded to
  - `created_at` string, date-time
  - `updated_at` string, date-time, nullable

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/796bd5194565/schema)
