Search + K

Command Palette

Search for a command to run...

Sign In

Set GitHub Actions cache retention limit for an enterprise

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

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.

Parameters

path Path Parameters

Name Type
enterprise required

The slug version of the enterprise name.

string

Request Body

application/json required
interface ActionsCacheRetentionLimitForEnterprise {
max_cache_retention_days?: number;
}

Responses

204

Response

unknown

Client Errors

400 application/json

Bad Request

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
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;
}