splitch

DocsAPIALLOCATION_INVALID.md

ALLOCATION_INVALID

HTTP status
400
Details payload
{ expected: 100, got: number, variantAllocations: Record<string, number> }

Cause

The Variant allocation percentages on a Run do not sum to 100.

Fix

Adjust the allocation so the percentages total exactly 100. details.variantAllocations echoes what you sent, keyed by Variant name, and details.got is the sum the server computed.

Related codes