跳转到主要内容
POST
/
beta
/
v2
/
enterprise
/
repositories
/
bulk-index
Bulk Index Repositories
curl --request POST \
  --url https://api.devin.ai/beta/v2/enterprise/repositories/bulk-index \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "org_id": "<string>",
  "repo_names": [
    "<string>"
  ]
}
'
{
  "status": "success"
}
该端点允许你一次性索引多个代码仓库,使 Devin 能在会话期间访问它们。单个请求最多可以索引 100 个代码仓库。
代码仓库索引是异步操作。请使用 Get Repository Status 端点来检查索引进度。

授权

Authorization
string
header
必填

Personal API Key (apk_user_*) for Enterprise Admins only

请求体

application/json
org_id
string
必填
repo_names
string[]
必填
Required array length: 1 - 100 elements

响应

Successful Response

status
string
默认值:success