Managing a hybrid telephony stack across us-east-1 and on-prem sip trunks. Need to push updated scoring rules via the routing api. The payload doesn’t validate on the rest endpoint, even though it works perfectly in the architect simulator.
Error response: {"error": "VALIDATION_FAILED", "message": "Score weight distribution exceeds threshold", "errors": [{"code": "INVALID_WEIGHT", "message": "Total weight must equal 100"}]}
Walking through the request flow, the serialization looks correct. The score array sums to exactly 100.0. Weight distribution looks like this: const weights = { skill_match: 45.0, wait_time: 30.0, agent_affinity: 25.0 }; it’s hitting the gateway and throwing a 422 immediately. architect shows the queue as PREDICTIVE with utilizationThreshold set to 0.6. maybe the backend rounding logic is truncating the floats before validation. switched to integers, same result.
logs on the integration side show a successful handshake, but the response payload drops the id field. queue config is attached. POST /api/v2/routing/predictivequestrategies/{strategyId} returns the validation error regardless of payload tweaks.