创建代理任务
Changed on已废弃:请改用使用 webhook 触发器的自定义自动化。创建一个在后台运行的新代理作业。该作业会异步处理提示词。轮询 get job 端点以跟踪进度。如果代理成功编辑文件,则会自动创建拉取请求(PR;亦称“合并请求”/Merge Request)。
使用管理员 API 密钥进行身份验证。
post/v2/agent/{projectId}/job
Request
- Base URLhttps://api.mintlify.com
- AuthHTTP bearer
Path parameters
projectIdstring required
你的项目 ID。可从你的控制台中的 API keys 页面复制。
Request body
Response
代理作业创建成功
Example response
{
"prLink": "https://github.com/org/repo/pull/123"
}Changes
- info
endpoint deprecated
- info
- info
added the non-success response with the status
- info
added the non-success response with the status
2 more changes in this revision
- info