Get a project's build cache
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/build-cache';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.deploybase.eu/api/v1/api/v1/projects/example/build-cache \ --header 'Authorization: <Authorization>'The framework build cache of the project (DEP-778): one archive for production and up to five for preview branches, the plan’s limit (compressed bytes, all scopes together) and whether the team’s builds use the cache right now. Not the CDN cache (/cache/purge).
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project ID (UUID)
Responses
Section titled “ Responses ”OK
object
object
object
Enabled is whether this team’s builds use the cache right now.
object
Branch names a branch scope’s branch, read from the deployment that wrote it. Empty for production, or when that deployment is gone.
Example generated
{ "data": { "enabled": true, "entries": [ { "branch": "example", "created_at": "example", "last_used_at": "example", "scope": "example", "size_bytes": 1 } ], "limit_bytes": 1, "used_bytes": 1 }, "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Forbidden
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}PROJECT_NOT_FOUND
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Live 582ac705 built