PUT
/enterprises/{enterprise}/actions/cache/retention-limitSet GitHub Actions cache retention limit for an enterprise
Sets 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.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
enterprisestringrequired
The slug version of the enterprise name.
max_cache_retention_daysintegeroptional
For repositories & organizations in an enterprise, the maximum duration, in days, for which caches in a repository may be retained.
204Response
400Bad Request
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 400 is returned: Bad Request. A 403 is returned: Forbidden. A 404 is returned: Resource not found.