ExtensionInstallations
Upgrade or roll back an installation
Changes the pinned version in place. Omit version for the latest publication, or name a version string or id, including an older version to roll back.
POST
Changes the pinned version in place. Omit version for the latest publication, or name a version string or id, including an older version to roll back. Preview with dryRun; changing requires acceptPermissions to list exactly the added permission: and event: grants. Only a person can upgrade. Credentials, owner, scope, send mode, and status stay attached to the installation.
apiKeyheader
x-api-key<token>id*stringMatch
^exti_[0-9a-hjkmnp-tv-z]{16,24}$application/json- body
version?||nullacceptPermissions?array<>|nulldryRun?boolean|nullUpgradeExtensionResponse
application/json- response
installation*fromVersion*toVersion*permissionDiff*dryRun*booleanversionChange*|nullimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.extensionInstallations.upgrade({ "id": "example"});Example Response
{ "installation": { "id": "string", "extensionId": "string", "name": "string", "displayName": "string", "version": { "id": "string", "version": "string" }, "runtime": "hosted", "status": "active", "createdAt": "string", "events": [ "mailbox.message.received" ], "permissions": [ "read" ], "sendMode": "send", "scope": { "mailboxIds": [ "string" ], "namespaceId": "string" }, "webhook": { "endpointId": "string", "url": "string" }, "updatedAt": "string", "disabledAt": "string" }, "fromVersion": { "id": "string", "version": "string" }, "toVersion": { "id": "string", "version": "string" }, "permissionDiff": { "added": [ "permission:read" ], "removed": [ "permission:read" ] }, "dryRun": true, "versionChange": { "id": "string", "organizationId": "string", "installationId": "string", "extensionId": "string", "fromVersion": { "id": "string", "version": "string" }, "toVersion": { "id": "string", "version": "string" }, "permissionDiff": { "added": [ "permission:read" ], "removed": [ "permission:read" ] }, "changedBy": "string", "changedAt": "string" }}