Skip to main content
POST
Roll back an alias

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

An optional guard against rolling back a move the caller has not seen.

expected_deployment_id
string<uuid>

The deployment the caller saw the alias serve. The rollback is refused with 409 pages_alias_moved when the alias serves another one.

Response

The alias serves the deployment it served before its latest move.

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