触发预览部署

Changed on

为特定分支创建或更新预览部署。如果该分支已有预览,则会触发重新部署。返回用于跟踪进度的状态 ID 和预览 URL。

使用管理员 API 密钥进行身份验证。

post/project/preview/{projectId}

Request

  • Base URL
    https://api.mintlify.com/v1
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

项目 ID。可在控制台的 API keys 页面中复制。

Request body

branchstring required

要为其创建预览部署的 Git 分支名称。

Response

预览部署已成功加入队列。

statusIdstring

用于跟踪预览部署的状态 ID。可将其与 Get deployment status 端点配合使用。

previewUrlstring

预览部署所托管的 URL。

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