Skip to main content
Update one policy while preserving its ID, evaluation position, and all omitted fields. Supply the fields to update in a single policy JSON object. At least one update field is required, and at most one rule field may be supplied.

Usage

Flags

string
required
Project ID or slug.
string
required
Application ID or slug.
string
required
Environment ID or slug.
string
required
Current policy ID from gateway.listPolicies.
JSON string
required
Policy fields to update. Supported fields are name, enabled, match, keyauth, ratelimit, firewall, openapi, and logging. Omitted fields remain unchanged. Set match to null or an empty array to clear all match expressions. Include at most one rule field.

Global Flags

Examples

See the API reference.
Last modified on August 25, 2026