---
title: "Set GitHub Actions cache usage policy for an enterprise"
method: PATCH
path: "/enterprises/{enterprise}/actions/cache/usage-policy"
tags: ["actions"]
---

# Set GitHub Actions cache usage policy for an enterprise

`PATCH /enterprises/{enterprise}/actions/cache/usage-policy`

Sets the GitHub Actions cache usage policy for an enterprise.
You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.

## Path parameters

- `enterprise` string, required

## Request body

- ActionsCacheUsagePolicyEnterprise — GitHub Actions cache usage policy for an enterprise.
  - `repo_cache_size_limit_in_gb` integer — For repositories in an enterprise, the default size limit for the sum of all caches in a repository, in gigabytes.
  - `max_repo_cache_size_limit_in_gb` integer — For repositories in an enterprise, the maximum value that can be set as the limit for the sum of all caches in a repository, in gigabytes.

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-5.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-5/versions/50ae54440071/schema)
