Skip to main content
DELETE
/
v3beta1
/
organizations
/
{org_id}
/
repositories
/
indexing
Bulk remove repositories from indexing
curl --request DELETE \
  --url https://api.devin.ai/v3beta1/organizations/{org_id}/repositories/indexing \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "repository_paths": [
    "<string>"
  ]
}
'
[
  {
    "branches": [
      "<string>"
    ],
    "indexing_enabled": true,
    "repository_path": "<string>",
    "indexing_status": {
      "indexing_enabled": true,
      "latest_completed_search_index_job": {
        "branch_name": "<string>",
        "commit": "<string>",
        "created_at": 123,
        "job_id": "<string>"
      },
      "latest_completed_wiki_index_job": {
        "branch_name": "<string>",
        "commit": "<string>",
        "created_at": 123,
        "job_id": "<string>"
      },
      "latest_indexes": [
        {
          "branch_name": "<string>",
          "commit": "<string>",
          "created_at": 123,
          "job_id": "<string>"
        }
      ]
    }
  }
]

Permissions

Requires a service user with the IndexOrgRepositories permission at the organization level.

Behavior

Disables indexing and clears all configured branches for the specified repositories. Returns 404 if any of the specified repositories are not found.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

org_id
string
required

Organization ID (prefix: org-)

Example:

"org-abc123def456"

Body

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

Response

Successful Response

branches
string[]
required
indexing_enabled
boolean
required
repository_path
string
required
indexing_status
RepoIndexingStatusResponse · object