Skip to main content
PUT
Point an alias at a deployment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

site_name
string
required

The site's name, which is also its host label.

alias_name
string
required

The alias: production, or a preview name of 1 to 20 lower-case letters, digits and single hyphens.

Body

application/json
deployment_id
string<uuid>
required

Response

The alias now serves the deployment.

An immutable deployment of a site. A deployment still uploading when its upload window closes is expired: it can no longer be finalized.

id
string<uuid>
required
site_id
string<uuid>
required
status
enum<string>
required
Available options:
uploading,
ready,
expired
alias
string
required

The alias the deployment went live under, or goes live under once finalized.

source
enum<string>
required
Available options:
api,
cli,
mcp,
portal
file_count
integer
required
total_bytes
integer
required
url
string
required

The alias's address once the deployment is ready; empty before, and while no Pages domain is configured.

created_at
string<date-time>
required
ready_at
string<date-time> | null
required
upload_expires_at
string<date-time> | null
required
error_message
string