---
title: "触发部署"
method: POST
path: "/project/update/{projectId}"
language: "zh-Hans"
---

# 触发部署

`POST /project/update/{projectId}`

## Request

- Base URL: `https://api.mintlify.com/v1`
- URL: `https://api.mintlify.com/v1/project/update/{projectId}`
- Auth: HTTP bearer

为你的文档项目排队一次部署更新。返回一个状态 ID，用于跟踪更新进度。更新将从你配置的部署用分支触发。

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

## Path parameters

- `projectId` string, required

## Response `202`

更新已加入队列。使用返回的 `statusId` 跟踪其进度。

- object
  - `statusId` string: 已触发的更新的状态 ID。

## Other responses

- `400`: 项目 ID 格式错误。
- `401`: API 密钥缺失或无效，或者你的方案不包含 API 访问权限。
- `403`: 你的 API 密钥没有写入权限，或者你的请求来自不在 API 密钥允许列表中的 IP 地址。
- `404`: 该项目不存在或不属于你的组织。
- `429`: 你已超出速率限制：每个组织每 10 秒 10 个请求。此限制由触发部署、触发自动化和自动化 webhook 端点共享。
- `500`: 无法将更新加入队列。请重试该请求。如果错误仍然存在，请联系支持团队。

## Changes

- **2026-10-30** `bf07d949aec9`: 6 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - …2 more

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-external-api/zh/changes/project/update/:projectId/post.md)

---

[API](https://skmtc.dev/mintlify/apis/mintlify-external-api/zh.md) - [All operations](https://skmtc.dev/mintlify/apis/mintlify-external-api/zh/llms.txt) - [OpenAPI document](https://skmtc.dev/mintlify/apis/mintlify-external-api/zh/revisions/e670268dd03a?raw)
