rollbackPackage
const url = 'https://example.com/api/v1/packages/example/rollback';const options = {method: 'POST', headers: {cookie: 'tilecast_session=<tilecast_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/packages/example/rollback \ --cookie tilecast_session=<tilecast_session>Requires the Owner or Administrator role with the admin scope. Cookie requests additionally require the X-CSRF-Token header. Restores the previous activation. Audited.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Store package identifier such as countdown_bar.
Header Parameters
Section titled “Header Parameters”Cookie-backed browser requests only, and only on unsafe methods. Bearer grants never send it.
Responses
Section titled “ Responses ”Restored package
object
One installed extension package with its contributions and, for custom packages, the repository binding.
object
The human-readable face of an installed or resolved package manifest.
object
Pinned artifact digest as sha256 colon hex.
One activated contribution: its kind, its package-qualified identity, and its path inside the package.
object
External server behavior module (manifest version 2 only).
object
Package-relative WebAssembly module path.
Bounded capabilities the package requests. Every entry is a request the host reviews before installation; nothing here grants itself.
object
Approved outbound HTTPS origins.
object
Package-owned background jobs the host runs.
object
object
One bounded high-frequency background job, separately reviewed.
object
object
Request plugin-owned key/value storage.
Sandboxed Studio UI entry.
object
Requested Tilecast service grants with registry-resolved display metadata.
object
object
The custom repository binding behind an installed custom package.
object
Last verified artifact digest as sha256 colon hex.
Example
{ "data": { "capabilities": { "services": [ { "category": "read" } ] } }}Dashboard authentication required
Owner or Administrator role required
Package_not_installed
No_rollback — the package has no previous activation — or package_in_use — the rollback drops a contribution persisted content still uses; remaining resources are listed in error.details
A 409 from restoring the previous package activation. Only package_in_use carries details, listing the content the rollback would strand.
object
object
The package and the contributed content that blocks the operation.
object
object
Example
{ "error": { "code": "no_rollback" }}