Skip to content

Get a project's build cache

GET
/api/v1/projects/{id}/build-cache
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).

id
required
string

Project ID (UUID)

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
enabled

Enabled is whether this team’s builds use the cache right now.

boolean
entries
Array<object>
object
branch

Branch names a branch scope’s branch, read from the deployment that wrote it. Empty for production, or when that deployment is gone.

string
created_at
string
last_used_at
string
scope
string
size_bytes
integer
limit_bytes
integer
used_bytes
integer

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

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

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.

string
who_acts
string

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

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

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.

string
who_acts
string

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