splitch

DocsAPIVARIANT_NOT_AVAILABLE.md

VARIANT_NOT_AVAILABLE

HTTP status
409
Recommended action
ADD_VARIANT_TO_ENV
Details payload
{ flagId: string, environmentId: string, missingVariants: string[], recommendedAction: RecommendedAction }

Cause

A referenced Variant is not promoted into this Environment. Flag definitions are App-level, but the set of Variants servable in a given Environment is per-Environment.

Fix

Promote the Variants in details.missingVariants into the Environment (splitch flags promote, flags_promote), then retry.

Related codes