object-storage-2

Modify custom domain

Modifies existing custom domain by given {service_uuid} and {domain_name}.

patch/1.3/object-storage-2/{service-uuid}/custom-domains/{custom-domain-name}

Request

  • Base URL: https://api.upcloud.com
  • URL: https://api.upcloud.com/1.3/object-storage-2/{service-uuid}/custom-domains/{custom-domain-name}
  • Auth: HTTP bearer

Path parameters

service-uuidstring uuid required

The unique identifier for the service.

Example:01234567-89ab-cdef-0123-456789abcdef

Service UUID

custom-domain-namestring hostname required

A valid hostname for the custom domain. Supports both apex domains (example.com) and subdomains (objects.example.com).

Example:example.com

The domain name.

Request body

type'public' | 'private'

Type of the custom domain.

domain_namestring hostname

New modified custom domain. Supports both apex domains (example.com) and subdomains (objects.example.com).

Example request

{
  "type": "public",
  "domain_name": "example.com"
}

Response

OK

domain_namestring

Custom domain name. Supports both apex domains and subdomains.

typestring

Endpoint type for the custom domain.

mode'api' | 'static-website'

Purpose of the domain. 'api' for S3 API access, 'static-website' for static website hosting.

Example response

{
  "domain_name": "example.com",
  "type": "public",
  "mode": "api"
}

Changes

No recorded changes to this operation across all 1 revision of this API.