Skip to main content
PATCH
Update a cache rule

Authorizations

X-Auth-Token
string
header
required

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Path Parameters

id
string
required

Body

application/json
name
string
Required string length: 1 - 128
description
string | null
Maximum string length: 512
priority
integer
Required range: 0 <= x <= 1000
enabled
boolean
matchers
object
action
object

Response

Updated

cache_rule
object
required
Last modified on May 19, 2026