v68

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.3 MB
actions

Get GitHub Actions cache retention limit for an enterprise

Gets GitHub Actions cache retention limit for an enterprise. All organizations and repositories under this enterprise may not set a higher cache retention limit.

OAuth tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

get/enterprises/{enterprise}/actions/cache/retention-limit

Path parameters

enterprisestring required

The slug version of the enterprise name.

Response

Response

max_cache_retention_daysinteger

For repositories & organizations in an enterprise, the maximum duration, in days, for which caches in a repository may be retained.

Example response

{
  "max_cache_retention_days": 14
}