---
title: "Update cache rule"
description: ""
canonical: "https://pgbeam.com/docs/api/projects/updateCacheRule"
last-updated: "2026-09-14T19:37:21.000Z"
---

# Update cache rule

> 

URL: https://pgbeam.com/docs/api/projects/updateCacheRule

Enable or disable caching for a specific query shape, with optional
TTL and SWR overrides. Requires the query to exist in the cache rules.
