createRepoExtensionInstallation
Install a release from the org's registry on main, copying its data catalog under record IDs of the repo's own, and build it linked with the peers that the repo installs, with each installation that depends on it. A build that fails refuses the install. When other changes to the repo's installations, such as updates to a peer, keep moving the builds that it needs, it changes nothing and answers ExtensionInstallationsKeptChanging: send it again once they finish. Prereleases don't install: only the repo that defines the extension runs them.
/repos/{repo_id}/branches/{branch}/extension-installationsPath 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
201
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 | ExtensionVersionNotFound | OrgNotFound | RepoNotFound
One of the following:
- BranchNotFoundEncoded
- ExtensionVersionNotFoundEncoded
- OrgNotFoundEncoded
- RepoNotFoundEncoded
409
ExtensionDependenciesUnmet | ExtensionInstallationRequiresMain | ExtensionNameInUse | ExtensionTagFamilyNameTaken | ExtensionServiceNotInstallable | ExtensionInstallationsKeptChanging | ExtensionSourceArchived | RepoArchived
One of the following:
- ExtensionDependenciesUnmetEncoded
- ExtensionInstallationRequiresMainEncoded
- ExtensionNameInUseEncoded
- ExtensionTagFamilyNameTakenEncoded
- ExtensionServiceNotInstallableEncoded
- ExtensionInstallationsKeptChangingEncoded
- ExtensionSourceArchivedEncoded
- RepoArchivedEncoded
413
WriteTooLarge | RequestBodyTooLarge
One of the following:
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
422
WriteRefused | ExtensionBuildFailed
One of the following:
- WriteRefusedEncoded
- ExtensionBuildFailedEncoded
500
OrgFailure | RepoFailure
One of the following:
- OrgFailureEncoded
- RepoFailureEncoded
503
RepoBusy | SessionUnavailable | RateLimitUnavailable
One of the following:
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded