メインコンテンツまでスキップ

Add a GitHub repository.

POST/api/v1/github-repositoriesconnectors:write
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Connects a repository through one of the company's GitHub App installations, with its filters, access lists, schedule and optional branch mappings. A changed or unknown installation is a 422 reference.

スコープconnectors:write (機密性の高いスコープ)
非同期いいえ
MCP ツールcreate_github_repository
Portal の権限create_github_repository_mappings

パラメーター​

名前場所型必須説明
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonGitHubRepositoryCreateInput

応答​

ステータス説明本文
201Success.application/json GitHubRepository または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

GitHubBranchMappingInputInput​

フィールド型必須説明
branch_namestring必須
is_enabledboolean または null任意Defaults to true.
number_prefixstring または null任意Empty falls back to the repository's prefix.

GitHubRepository​

フィールド型必須説明
auth_typestring必須
created_atstring (date-time) または null必須
display_namestring または null必須
edit_group_idsstring の配列必須Groups that may edit the imported documents.
edit_user_idsstring の配列必須Users that may edit the imported documents.
file_extensionsstring の配列必須
github_account_loginstring または null必須
github_installation_idstring または null必須
github_repository_idstring必須
has_credentialsboolean必須Whether the repository has its GitHub App installation.
is_activeboolean または null必須
last_synced_atstring (date-time) または null必須
number_prefixstring または null必須
path_prefixesstring の配列必須
read_group_idsstring の配列必須Groups that may read the imported documents.
read_user_idsstring の配列必須Users that may read the imported documents.
repo_namestring必須
repo_ownerstring必須
schedule_dayinteger または null必須
schedule_hourinteger または null必須
schedule_typestring または null必須

GitHubRepositoryCreateInput​

フィールド型必須説明
branch_mappingsGitHubBranchMappingInputInput の配列任意
display_namestring または null任意
edit_group_idsstring の配列任意
edit_user_idsstring の配列任意
file_extensionsstring の配列任意
github_account_loginstring または null任意
github_installation_idstring または null任意
number_prefixstring または null任意Default GH.
path_prefixesstring の配列任意
read_group_idsstring の配列任意
read_user_idsstring の配列任意
repo_namestring必須
repo_ownerstring必須
schedule_dayinteger または null任意
schedule_hourinteger または null任意
schedule_typestring または null任意