Skip to main content
PUT
Edit a custom domain of several services

Authorizations

Authorization
string
header
required

JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '

Path Parameters

environmentId
string<uuid>
required

Environment ID

domainName
string
required

The current name of the custom domain.

Example:

"my.domain.tld"

Body

application/json

The full state of a custom domain name of an environment.

domain
string
required

The domain name.

Example:

"my.domain.tld"

services
object[]
required

Every service the domain routes to, each with one / route served by its default port. Between 1 and 50 services; more than one only when the environment routing_capabilities.can_share is true.

Required array length: 1 - 50 elements
generate_certificate
boolean
default:true

Whether Qovery generates a certificate for the domain. Set it to false when a CDN or another party manages the certificate.

use_cdn
boolean
default:false

Whether the domain is behind a CDN. If true, Qovery only checks that the domain points to an IP; otherwise it checks that the domain resolves to the service load balancer.

Response

The custom domain is edited

domain
string
required

The domain name.

Example:

"my.domain.tld"

generate_certificate
boolean
required

Whether Qovery generates a certificate for the domain.

use_cdn
boolean
required

Whether the domain is behind a CDN.

impacted_services
object[]
required

The services whose custom domains changed, removed services included. They need a redeploy to serve the change.