updateRepoExtensionInstallation
Update main's installation to a newer release, resolving each conflict the update check lists by taking ours or theirs, and any record previously resolved with take_ours by taking theirs to follow the version again, each by the repo's record ID. The installation and each one that depends on it build again, linked with the peers that the repo installs, and a build that fails refuses the update. When other changes to the repo's installations keep moving the builds that it needs, it changes nothing and answers ExtensionInstallationsKeptChanging: send it again once they finish. An update that removes a custom field a policy reads is refused with SchemaChangeBreaksPolicy.
/repos/{repo_id}/branches/{branch}/extension-installations/{name}Path parameters
Query parameters
Request body JSON required
- versionstringrequired
A release, MAJOR.MINOR.PATCH. Only releases are in the org registry, and only releases install. A prerelease (MAJOR.MINOR.PATCH-pre.<commit>) runs only in the repo that defines the extension: read it there at the commit commit_<commit>. listRepoCommitExtensionPublications (
extensions list-commit-extension-publications --commit) names the version each extension published at a commit, and the repo's extension reads at that commit (extensions list-extensionsorextensions read-fileswith--commit) return its content.
Returns
200
ExtensionInstallation
400
InvalidRequest | RequestBodyTooDeep
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
BranchNotFound | ExtensionInstallationNotFound | ExtensionVersionNotFound | OrgNotFound | RepoNotFound
One of the following:
- BranchNotFoundEncoded
- ExtensionInstallationNotFoundEncoded
- ExtensionVersionNotFoundEncoded
- OrgNotFoundEncoded
- RepoNotFoundEncoded
409
ExtensionDependenciesUnmet | ExtensionInstallationNotNewer | ExtensionInstallationRequiresMain | ExtensionInstallationUpdateRefused | SchemaChangeBreaksPolicy | RecordInUse | ExtensionServiceNotInstallable | ExtensionInstallationsKeptChanging | RepoArchived
One of the following:
- ExtensionDependenciesUnmetEncoded
- ExtensionInstallationNotNewerEncoded
- ExtensionInstallationRequiresMainEncoded
- ExtensionInstallationUpdateRefusedEncoded
- SchemaChangeBreaksPolicyEncoded
- RecordInUseEncoded
- ExtensionServiceNotInstallableEncoded
- ExtensionInstallationsKeptChangingEncoded
- RepoArchivedEncoded
413
WriteTooLarge | RequestBodyTooLarge
One of the following:
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
422
WriteRefused | InvalidExtensionInstallationUpdateResolution | ExtensionBuildFailed
One of the following:
- WriteRefusedEncoded
- InvalidExtensionInstallationUpdateResolutionEncoded
- ExtensionBuildFailedEncoded
500
OrgFailure | RepoFailure
One of the following:
- OrgFailureEncoded
- RepoFailureEncoded
503
RepoBusy | SessionUnavailable | RateLimitUnavailable
One of the following:
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded