启动静态导出任务
Changed on<Warning>静态导出未公开提供。 仅适用于 Enterprise 套餐。请联系 sales@mintlify.com 申请访问权限。</Warning>
为部署启动一个静态导出任务。该任务会将你的文档预渲染为一组自包含的静态 HTML、RSC 及资源文件,然后将结果打包为单个可下载的归档文件。
每个部署同一时间只能有一个处于活动状态的静态导出任务。当已有任务处于 queued 或 running 状态时启动新任务,将返回 409。速率限制为每个组织每小时最多启动 10 个任务。
使用管理员 API 密钥进行身份验证。
post/static-export/{projectId}/jobs
Request
- Base URLhttps://api.mintlify.com/v1
- AuthHTTP bearer
Path parameters
projectIdstring required
你的项目 ID。可以从控制台的 API 密钥 页面复制。
Response
导出任务已被接受并加入队列。
Example response
{
"jobId": "6520f3a1c9b1a20012ab34cd",
"status": "completed",
"bundleUrl": "https://mintlify-static-exports.s3.amazonaws.com/6520f3a1c9b1a20012ab34cd/export.zip?X-Amz-Signature=...",
"sizeBytes": 18432000
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info