Search + K

Command Palette

Search for a command to run...

Sign In

Get GitHub Actions cache retention limit for an enterprise

GET /enterprises/{enterprise}/actions/cache/retention-limit
Copy endpoint
https://api.github.com

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.

Parameters

path Path Parameters

Name Type
enterprise required

The slug version of the enterprise name.

string

Responses

200 application/json

Response

interface ActionsCacheRetentionLimitForEnterprise {
max_cache_retention_days?: number;
}

Client Errors

403 application/json

Forbidden

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
404 application/json

Resource not found

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}