| name | Set GitHub Actions cache retention limit for an enterprise |
|---|---|
| example | octokit.rest.actions.setActionsCacheRetentionLimitForEnterprise({ enterprise }) |
| route | PUT /enterprises/{enterprise}/actions/cache/retention-limit |
| scope | actions |
| type | API method |
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.
octokit.rest.actions.setActionsCacheRetentionLimitForEnterprise({
enterprise,
});| name | required | description |
|---|---|---|
| enterprise | yes |
The slug version of the enterprise name. |
| max_cache_retention_days | no |
For repositories & organizations in an enterprise, the maximum duration, in days, for which caches in a repository may be retained. |
See also: GitHub Developer Guide documentation.