Skip to main content

Start a GitHub repository sync.

POST/api/v1/github-repositories/{github_repository_id}/syncconnectors:write

Starts a sync of the repository (or of one branch mapping) in the background. A sync of the same scope already queued or running is returned with already_running set. Follow the run with GET /github-sync-runs/{github_sync_run_id}.

Scopeconnectors:write (sensitive)
AsynchronousNo
MCP toolsync_github_repository
Portal permissionstrigger_github_sync

Parameters​

NameInTypeRequiredDescription
github_repository_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonGitHubSyncRequestInput

Responses​

StatusDescriptionBody
200Success.application/json GitHubSyncStart or object
400invalid_version, malformed_jsonapplication/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
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

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

Schemas​

GitHubSyncRequestInput​

FieldTypeRequiredDescription
github_branch_mapping_idstring or nullOptional

GitHubSyncStart​

FieldTypeRequiredDescription
already_runningbooleanRequired
github_repository_idstringRequired
github_sync_run_idstringRequired
task_idstringRequired