Skip to main content

List what stops a GitHub repository being deleted.

GET/api/v1/github-repositories/{github_repository_id}/removal-blockersconnectors:read

The active workflow templates whose latest version uses the repository (type workflow_template) and the open workflows running on a version that uses it (type workflow). Delete is refused with 409 in_use while any exists. Needs View Github Repositories. A workflow's subject is shown only with View All Workflows.

Scopeconnectors:read (sensitive)
AsynchronousNo
MCP toollist_github_repository_removal_blockers
Portal permissionsview_github_repositories
Pagingsnapshot
Default ordertemplates first, then workflows by workflow_id

Parameters​

NameInTypeRequiredDescription
github_repository_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of GitHubRemovalBlockerRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

GitHubRemovalBlocker​

FieldTypeRequiredDescription
started_atstring (date-time) or nullRequiredWhen the workflow started; null for a template.
subjectstring or nullRequiredThe workflow's subject; null unless you hold View All Workflows.
typestringRequiredworkflow_template (an active template whose latest version uses a repository) or workflow (an open workflow running on a version that uses one) (open).
workflow_idstring or nullRequiredSet for type workflow.
workflow_template_idstringRequiredThe template's root; for a workflow, the template it runs.
workflow_template_namestring or nullRequired