Install or update an extension for a reader
const url = 'http://localhost:8080/api/v1/users/1/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/users/1/extensions/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "repositoryId": 1 }'Admin only. Provisions an extension from a server-wide repository, including for a shared demo account. Private repositories cannot be used. The component undergoes the same validation as a self-install.
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"}Requires an admin account that is not a shared demo account.
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"}Invalid or incompatible extension component.
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"}