Skip to main content
POST
开启公开分享

限制说明

使用说明

  • 公开链接是匿名的 —— 任何拿到链接的人都可以查看内容,链接也可能被继续转发。内容会被复制到公开 CDN 对象上,访问链接时不经过本 API。
  • 幂等:对已分享的产物重复开启会原样返回已有链接;撤销后重新开启也会得到同一个链接 —— 链接以产物 ID 为标识。
  • 超过 16 MiB 的产物无法分享,调用返回 InvalidParameter
  • 分享是内容快照:之后重新发布产物不会自动更新公开内容,需调用 /safari/artifact/gallery/share/sync 同步。
  • 每次调用都会记录到账户审计日志。

授权

app_key
string
query
必填

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

请求体

application/json

指定一个产物库中的产物。

artifact_id
string
必填

产物 ID(art_ 前缀)。同时也是公开分享链接的标识。

响应

Success

Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.

request_id
string
必填

本次请求的唯一 ID,与 Flashcat-Request-Id 响应头一致。反馈问题时请携带该 ID。

示例:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

error
object

响应结构中的错误 payload,仅在非 2xx 响应时出现。

data
object

产物的公开分享状态。