Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.27 KB

File metadata and controls

46 lines (35 loc) · 1.27 KB
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

Set 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.

octokit.rest.actions.setActionsCacheRetentionLimitForEnterprise({
  enterprise,
});

Parameters

name required description
enterpriseyes

The slug version of the enterprise name.

max_cache_retention_daysno

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.