Skip to main content
DELETE
批量取消代码仓库的索引

权限

需要在组织级拥有 IndexOrgRepositories 权限的服务用户。

行为

禁用索引,并清除指定代码仓库的所有已配置分支。如果指定的任一代码仓库不存在,则返回 404。

授权

Authorization
string
header
必填

服务用户凭据(前缀:cog_)

路径参数

org_id
string
必填

组织 ID(前缀:org-)

示例:

"org-abc123def456"

请求体

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

响应

成功响应

branches
string[]
必填
indexing_enabled
boolean
必填
repository_path
string
必填
indexing_status
RepoIndexingStatusResponse · object | null