Update Traffic Policy
Edit a policy's metadata (name, description, priority, enabled flag). Only the fields you send take effect: a non-empty name or description overwrites the stored value, and enabled/priority are applied when present (they are nullable in the request — omit them to leave the current value untouched). Rules are not affected by this call; use the per-rule update endpoints for those.
Toggling enabled is the right knob to temporarily disable a whole policy without removing its rules.
Path parameters
uuid from /endpoints.uuid from the policy list. Resolved under this endpoint only.Deprecated: the legacy integer id is still accepted in the path until the sunset, answered with Deprecation and Sunset headers. Use the uuid.
Request body
Same fields as create: name, description, enabled, priority. A non-empty name is required only if you intend to change it — an empty/omitted name leaves the existing value in place. Strict decoding rejects unknown fields.
Response (200 OK)
The updated policy (same shape as a list entry).
Deprecated: until the sunset this response also carries the legacy integer id and *_id fields. Don't use them; read uuid and the *_uuid fields.
Errors
integer_id_unsupported).traffic_policies.Endpoint not found), or the policy isn't one of this endpoint's (Policy not found).