Set GitHub Actions cache storage limit for an organization
PUT
/organizations/{org}/actions/cache/storage-limit
Sets GitHub Actions cache storage limit for an organization. All organizations and repositories under this organization may not set a higher cache storage 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.
Request Body required
Section titled “ Request Body required ” Media type application/json
Actions cache storage limit for an organization
GitHub Actions cache storage policy for an organization.
object
max_cache_size_gb
For repositories in the organization, the maximum size limit for the sum of all caches in a repository, in gigabytes.
integer
Examples
Example selected_actions
{ "max_cache_size_gb": 150}Responses
Section titled “ Responses ”Response
Bad Request
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"} Scim Error
Scim Error
object
message
string
documentation_url
string
detail
string
status
integer
scimType
string
schemas
Array<string>
Example generated
{ "message": "example", "documentation_url": "example", "detail": "example", "status": 1, "scimType": "example", "schemas": [ "example" ]}Forbidden
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}