The /key/update response echoes top-level defaults like policies:[] into client state. On a subsequent edit, the form resends policies:[], which the backend treats as "user is setting policies" and blocks with a 403 enterprise check regardless of value. Drop premium metadata fields from the update payload when the current form value and the previously persisted value are both empty. Genuine clears (non-empty -> empty) still pass through so premium users can clear policies as intended. |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||