Skip to main content
PATCH
Management API 主机(api.scanova.io)上更新自定义域名的配置,使用您的原始 Management API 密钥进行身份验证。
integer
必填
域名的 id
boolean
新的 QR 码是否默认使用此域名。
string
当有人访问裸域名(不带 QR slug)时该执行的操作:no_action(默认)、url_redirectcustom_page
string
root_actionurl_redirect 时,将访客发送到的 URL。
integer
root_actioncustom_page 时用作根页面的 CustomDomainTemplate id——参见列出自定义域名根页面模板
string
nonehttphttps。留空时默认为 https
boolean
设置后会从短链接 URL 中去除 ?qr=1 跟踪参数。

大多数字段在此端点为只读

只有 is_defaultroot_actionredirecttemplateprotocolremove_qr_query 可以通过此端点写入——其他所有字段,包括 domain 本身,一旦域名创建后即为只读。如果 pk 不是该账户拥有的域名,则返回 404

相关内容

授权

Authorization
string
header
必填

Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.

路径参数

pk
integer
必填

响应

Domain updated.