Install or update an extension
const url = 'http://localhost:8080/api/v1/me/extensions/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"repositoryId":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8080/api/v1/me/extensions/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "repositoryId": 1 }'Downloads the version the repository’s index lists now and checks it against the index’s digest, then checks that the component’s manifest has the same id, version and sites. Installing again updates the install, or moves it to another repository.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The extension’s reverse-DNS id.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "repositoryId": 1}Responses
Section titled “Responses”The install was updated.
object
The formats the extension’s chapters come in, so clients know which readers it needs before opening a chapter. Sources from before formats existed read images.
False while it came from the user’s own repository and the admin allows only the allow list.
The version the repository lists, when it differs from the installed one.
Example
{ "formats": [ "images" ]}The extension was installed.
object
The formats the extension’s chapters come in, so clients know which readers it needs before opening a chapter. Sources from before formats existed read images.
False while it came from the user’s own repository and the admin allows only the allow list.
The version the repository lists, when it differs from the installed one.
Example
{ "formats": [ "images" ]}The request was malformed.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The request has no valid session token.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The repository is the user’s own and the admin allows only the allow list.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The resource does not exist.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The component isn’t a valid source extension (extension_invalid), doesn’t match the index (extension_mismatch), or was built for another version of the source contract (extension_incompatible). It can also be one of the repository codes of RepositoryNeedsCredentials when the host refuses the component: stored credentials were revoked, or the component is on another origin, which isn’t sent them.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The server failed; details are in its log.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The repository’s index couldn’t be fetched or isn’t valid.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}