Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Replace an app's hostnames

POST
/xeonr.updater.v1.UpdaterService/SetAppDomains

Replaces the app's hostnames with hostnames and sets primary_hostname as the primary, then returns the resulting list as GetAppDomains does. The slug's own hostname is always kept, whatever is sent; an upl.im name may be given whole (downloads.upl.im) or as its label (downloads), and duplicates are dropped. A custom domain is live once its CNAME to cname_target verifies; until then its status is pending.

A primary_hostname that is not among the app's hostnames is INVALID_ARGUMENT; upl refuses an unverified custom domain as primary. Bucket administration: the caller's token needs write access and the upl:bucket:manage scope, else PERMISSION_DENIED (that scope is not yet delegated to the updater's console session); upl-im-api also requires the upl admin role in the owning team. API keys are refused.

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketId?string
Length1 <= length
hostnames?array<>

Every hostname the app should answer on, besides the slug's own (which is always kept). An upl.im name may be given whole or as its label.

Itemsitems <= 8
primaryHostname?string

One of the app's hostnames, or the slug's own. A custom domain can be primary only once it is verified.

Length1 <= length <= 253
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/SetAppDomains" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "domains": [
    "map[hostname:pixel.upl.im kind:slug primary:false status:active]",
    "map[cnameTarget:custom.upl.im hostname:downloads.pixel-labs.com kind:custom primary:true status:active verifiedAt:2026-10-20T14:05:00Z]"
  ],
  "publicUrl": "https://downloads.pixel-labs.com"
}