Skip to main content

Update a GitHub repository (JSON Merge Patch).

PATCH/api/v1/github-repositories/{github_repository_id}connectors:write

Changes the repository's settings: the owner and name, display name, the GitHub App installation (it must be one of the company's active installations), file and path filters, number prefix, active flag and schedule.

Scopeconnectors:write (sensitive)
AsynchronousNo
MCP toolupdate_github_repository
Portal permissionsedit_github_repository_mappings

Parameters​

NameInTypeRequiredDescription
github_repository_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonGitHubRepositoryPatchInput
application/merge-patch+jsonGitHubRepositoryPatchInput

Responses​

StatusDescriptionBody
200Success.application/json GitHubRepository 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
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_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​

GitHubRepository​

FieldTypeRequiredDescription
auth_typestringRequired
created_atstring (date-time) or nullRequired
display_namestring or nullRequired
edit_group_idsarray of stringRequiredGroups that may edit the imported documents.
edit_user_idsarray of stringRequiredUsers that may edit the imported documents.
file_extensionsarray of stringRequired
github_account_loginstring or nullRequired
github_installation_idstring or nullRequired
github_repository_idstringRequired
has_credentialsbooleanRequiredWhether the repository has its GitHub App installation.
is_activeboolean or nullRequired
last_synced_atstring (date-time) or nullRequired
number_prefixstring or nullRequired
path_prefixesarray of stringRequired
read_group_idsarray of stringRequiredGroups that may read the imported documents.
read_user_idsarray of stringRequiredUsers that may read the imported documents.
repo_namestringRequired
repo_ownerstringRequired
schedule_dayinteger or nullRequired
schedule_hourinteger or nullRequired
schedule_typestring or nullRequired

GitHubRepositoryPatchInput​

FieldTypeRequiredDescription
auth_typestring or nullOptional
created_atstring (date-time) or nullOptional
display_namestring or nullOptional
edit_group_idsarray of string or nullOptional
edit_user_idsarray of string or nullOptional
file_extensionsarray of string or nullOptional
github_account_loginstring or nullOptional
github_installation_idstring or nullOptional
github_repository_idstring or nullOptional
has_credentialsboolean or nullOptional
is_activeboolean or nullOptional
last_synced_atstring (date-time) or nullOptional
number_prefixstring or nullOptional
path_prefixesarray of string or nullOptional
read_group_idsarray of string or nullOptional
read_user_idsarray of string or nullOptional
repo_namestring or nullOptional
repo_ownerstring or nullOptional
schedule_dayinteger or nullOptional
schedule_hourinteger or nullOptional
schedule_typestring or nullOptional