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

Update a branch mapping (JSON Merge Patch).

PATCH/api/v1/github-repositories/{github_repository_id}/branch-mappings/{github_branch_mapping_id}connectors:write
注記

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

Renames the branch, changes its number prefix or turns it on and off. A branch name another mapping of the repository uses is refused.

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

パラメーター​

名前場所型必須説明
github_repository_idpathstring必須
github_branch_mapping_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-Matchheaderstring任意

リクエスト本文​

Content-Type型
application/jsonGitHubBranchMappingPatchInput
application/merge-patch+jsonGitHubBranchMappingPatchInput

応答​

ステータス説明本文
200Success.application/json GitHubBranchMapping または 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
409conflictapplication/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

エラー​

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

スキーマ​

GitHubBranchMapping​

フィールド型必須説明
branch_namestring必須
github_branch_mapping_idstring必須
github_repository_idstring必須
is_enabledboolean必須
last_synced_atstring (date-time) または null必須
last_synced_shastring または null必須
number_prefixstring または null必須Empty falls back to the repository's prefix.

GitHubBranchMappingPatchInput​

フィールド型必須説明
branch_namestring または null任意
github_branch_mapping_idstring または null任意
github_repository_idstring または null任意
is_enabledboolean または null任意
last_synced_atstring (date-time) または null任意
last_synced_shastring または null任意
number_prefixstring または null任意