Purge build cache archives written in a window (incident response)
const url = 'https://api.deploybase.eu/api/v1/api/v1/admin/build-cache?created_after=example&created_before=example';const options = {method: 'DELETE', 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 DELETE \ --url 'https://api.deploybase.eu/api/v1/api/v1/admin/build-cache?created_after=example&created_before=example' \ --header 'Authorization: <Authorization>'Platform admin incident purge (DEP-778, threat T5): deletes every framework build cache entry created in [created_after, created_before) and every stored archive last written in that window, for all teams. Builds after it start cold. Runbook: docs/ops/build-cache.md.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ”Window start, RFC 3339, inclusive
Window end, RFC 3339, exclusive
Responses
Section titled “ Responses ”OK
object
object
object
Deleted counts the archives deleted: entries plus objects that had none.
Example generated
{ "data": { "deleted": 1 }, "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}INVALID_INPUT: both bounds are required, RFC 3339, and after < before
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"}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"}Live 582ac705 built