Skip to main content
DELETE
取消分支的索引

权限

需要服务用户在组织级别具备 IndexOrgRepositories 权限。

行为

将指定代码仓库中的特定分支从索引范围中移除。如果移除后未剩余任何分支,则会自动禁用该代码仓库的索引。 如果该分支未配置索引,则返回 404。

授权

Authorization
string
header
必填

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

路径参数

repository_path
string
必填
branch_name
string
必填
org_id
string
必填

组织 ID(前缀:org-)

示例:

"org-abc123def456"

响应

成功响应

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