# ALLOCATION_INVALID

- Surface: API
- HTTP status: 400
- Details: `{ 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

- [VALIDATION_ERROR](https://splitch.dev/docs/error/VALIDATION_ERROR)
- [RUN_FROZEN](https://splitch.dev/docs/error/RUN_FROZEN)

Source: https://splitch.dev/docs/error/ALLOCATION_INVALID