上传源码包和静态包,上传成功不会切换线上页面

POST/api/v1/storefront/releases

认证请求头 Authorization: Bearer <访问令牌>,访问令牌用设备码换取,不要向用户要密码、短信验证码或 API Key
权限商家,需要 storefront:write 才能下载、上传或切换店面,只有 product:write 不够

请求体

multipart/form-data

上传成功不会切换线上页面

sourcebinary必填

源码包

staticbinary必填

静态包

fallbackenum<string>

未知路径回退,只能是首页

可选值: index.html

authorize_buyerstring

买家授权外观在静态包中的路径,不要加前导斜杠

authorize_merchantstring

商家授权外观在静态包中的路径,不要加前导斜杠

请求示例

source: <file>
static: <file>
fallback: index.html
authorize_buyer: string
authorize_merchant: string

响应

201

application/json

active 为 false

idstring必填

发布 ID

activeboolean必填

上传后仍是 false

响应示例

{
  "id": "id_example",
  "active": true
}