Custom Domains

Update a custom domain

Changed on
put/projects/{project_id}/custom-domains/{domain_id}

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

project_idinteger required

Project ID

domain_idinteger required

Custom domain ID

Request body

branchstring nullable
domainstring nullable
environment_idinteger nullable
redirect_tostring nullable
service_namestring nullable

Docker Compose service name this domain routes to (empty string clears it)

status_codeinteger nullable

Response

Custom domain updated successfully

branchstring nullable
created_atstring date-time required
domainstring required
domain_idinteger nullable
expiration_timestring date-time nullable
idinteger required
last_renewedstring date-time nullable
messagestring nullable
project_idinteger required
redirect_tostring nullable
service_namestring nullable

Docker Compose service name this domain routes to

statusstring required
status_codeinteger nullable
updated_atstring date-time required

Changes

    • breaking

      the created_at response's property type changed from integer to string, and format from int64 to date-time for status

    • breaking

      the expiration_time response's property type changed from integer null to string null, and format from int64 to date-time for status

    • breaking

      the last_renewed response's property type changed from integer null to string null, and format from int64 to date-time for status

    1 more change in this revision