Files
mintlify__docs/zh/api/agent/v2/create-agent-job.mdx
mintlify[bot] 82d887df98 Sync translations with English documentation updates (#5786)
Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
2026-05-21 23:38:35 +00:00

27 lines
857 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "创建 Agent 作业"
openapi: /zh/admin-openapi.json POST /v2/agent/{projectId}/job
keywords: [ "Agent 作业", "创建", "自动化", "自动执行" ]
---
此端点用于创建后台 Agent 作业。该作业会异步运行——请使用 [获取 Agent 作业](/zh/api/agent/v2/get-agent-job) 端点轮询状态更新。
如果 Agent 成功编辑文件,则会自动创建拉取请求 (PR;亦称“合并请求”/Merge Request) ,并在作业响应中填充 `prLink` 字段。
<div id="rate-limits">
## 速率限制
</div>
* 每个 Mintlify 项目每小时可使用 100 次
<div id="usage">
## 用法
</div>
```bash
curl -X POST https://api.mintlify.com/v2/agent/{projectId}/job \
-H "Authorization: Bearer mint_xxxxx" \
-H "Content-Type: application/json" \
-d '{"prompt": "Add a quickstart guide for the Python SDK"}'
```