upsertRepoConnectionBinding
Fill a requirement of an extension the repo installs on main, or else of one it defines, as its code on branch (default main) declares it, with a connection, replacing the one that filled it. An org requirement takes a connection shared with the org.
PUT
/repos/{repo_id}/connection-bindings/{extension_name}/{requirement}Path parameters
Query parameters
Request body JSON required
Returns
200
ConnectionBinding
JSON
400
InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
BranchNotFound | ExtensionNotFound | ConnectionRequirementNotFound | ConnectionNotFound | RepoNotFound | OrgNotFound
JSON
One of the following:
- BranchNotFoundEncoded
- ExtensionNotFoundEncoded
- ConnectionRequirementNotFoundEncoded
- ConnectionNotFoundEncoded
- RepoNotFoundEncoded
- OrgNotFoundEncoded
409
ExtensionPublicationPending | ExtensionNameTaken | ExtensionVersionNotNewer | RequirementMismatch | ConnectionNotShared | ConnectionNotUser
JSON
One of the following:
- ExtensionPublicationPendingEncoded
- ExtensionNameTakenEncoded
- ExtensionVersionNotNewerEncoded
- RequirementMismatchEncoded
- ConnectionNotSharedEncoded
- ConnectionNotUserEncoded
413
RequestBodyTooLarge
422
ExtensionBuildFailed | ExtensionNotSelfContained | ExtensionRequiredFieldWithoutDefault | ExtensionDependencyRefused
JSON
One of the following:
- ExtensionBuildFailedEncoded
- ExtensionNotSelfContainedEncoded
- ExtensionRequiredFieldWithoutDefaultEncoded
- ExtensionDependencyRefusedEncoded
500
RepoFailure | OrgFailure
JSON
One of the following:
- RepoFailureEncoded
- OrgFailureEncoded
503
SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded