Skip to main content
err:unkey:data:flag_not_found
workspace.updateFlag returns HTTP 404 when the requested slug doesn’t match an existing flag definition. The update doesn’t create a flag. This error is about workspace feature flags, not command-line flags.

How to fix

Check the flag slug before retrying the update:
  1. Call workspace.getFlags with a credential for the intended workspace.
  2. Use the flag’s map key from the response’s data object as the update’s slug.
  3. Check allowOptIn or allowOptOut before changing its value. A flag that exists but doesn’t permit the requested change returns HTTP 403 instead.
If the flag is missing, contact support@unkey.com.
Last modified on October 28, 2026