---
title: "POST /domain.update"
method: POST
path: "/domain.update"
tags: ["domain"]
---

# POST /domain.update

`POST /domain.update`

## Request body

- object
  - `host` string, required
  - `path` string, nullable
  - `port` number, nullable
  - `customEntrypoint` string, nullable
  - `https` boolean
  - `certificateType` 'letsencrypt' | 'none' | 'custom'
  - `customCertResolver` string, nullable
  - `serviceName` string, nullable
  - `domainType` 'compose' | 'application' | 'preview', nullable
  - `internalPath` string, nullable
  - `stripPath` boolean
  - `middlewares` string[], nullable
  - `forwardAuthEnabled` boolean
  - `domainId` string, required

## Response `200`

Successful response

- object

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

[API](https://skmtc.net/dokploy/apis/dokploy-api.md) · [All operations](https://skmtc.net/dokploy/apis/dokploy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dokploy/dokploy-api/versions/0c21b2084cd6/schema)
