跳转到主要内容
GET
/
beta
/
v2
/
enterprise
/
repositories
/
{org_id}
Get Job Status
curl --request GET \
  --url https://api.devin.ai/beta/v2/enterprise/repositories/{org_id} \
  --header 'Authorization: Bearer <token>'
[
  {
    "indexing_enabled": true,
    "latest_completed_search_index_job": {
      "commit": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "job_id": "<string>",
      "status": "failed"
    },
    "latest_completed_wiki_index_job": {
      "commit": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "job_id": "<string>",
      "status": "failed"
    },
    "latest_index": {
      "commit": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "job_id": "<string>",
      "status": "failed"
    },
    "name": "<string>"
  }
]
此接口会返回与指定组织关联的所有代码仓库的当前索引状态。响应中包含有关索引任务、提交 SHA 以及每个代码仓库时间戳等信息。

授权

Authorization
string
header
必填

Personal API Key (apk_user_*) for Enterprise Admins only

路径参数

org_id
string
必填

响应

Successful Response

indexing_enabled
boolean
必填
latest_completed_search_index_job
RepoIndexJobResponse · object
必填
latest_completed_wiki_index_job
RepoIndexJobResponse · object
必填
latest_index
RepoIndexJobResponse · object
必填
name
string
必填