Index a repository
Repositories (Organization)
Index a repository
Idempotently enables indexing for a single repository and triggers indexing jobs.
PUT
Index a repository
Permissions
Requires a service user with theIndexOrgRepositories permission at the organization level.
Behavior
This endpoint is idempotent — calling it multiple times for the same repository will not create duplicate indexing jobs. It enables indexing and triggers indexing jobs for the specified repository. You can optionally specifybranch_names in the request body to index specific branches. If omitted, the default branch is used.Authorizations
Service User credential (prefix: cog_)
Path Parameters
Organization ID (prefix: org-)
Example:
"org-abc123def456"
Body
application/json

