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

权限

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

行为

禁用索引,并清除指定代码仓库中已配置的所有分支。

授权

Authorization
string
header
必填

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

路径参数

repository_path
string
必填
org_id
string
必填

组织 ID(前缀:org-)

示例:

"org-abc123def456"

响应

成功响应

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