Get GitHub Actions cache retention limit for an organization
GET
/organizations/{org}/actions/cache/retention-limit
Gets GitHub Actions cache retention limit for an organization. All repositories under this organization may not set a higher cache retention limit.
OAuth tokens and personal access tokens (classic) need the admin:organization scope to use this endpoint.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
The organization name. The name is not case sensitive.
Responses
Section titled “Responses”Response
Media typeapplication/json
Actions cache retention limit for an organization
GitHub Actions cache retention policy for an organization.
object
max_cache_retention_days
For repositories in this organization, the maximum duration, in days, for which caches in a repository may be retained.
integer
Examples
Exampledefault
{ "max_cache_retention_days": 80}Forbidden
Media typeapplication/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Media typeapplication/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}