Guest API variable injection failing with 400 on namespace collision

Problem

The Azure Functions host doesn’t accept the custom variable pushes to the Guest API for Web Messaging.

Code

payload := map[string]interface{}{
 "sessionId": "sess_89f2a1",
 "variables": []map[string]string{{"key": "tier", "value": "gold"}},
}

Error

The gateway returns a 400 with "error_description": "Injection schema violates constraint: variable count exceeds limit or namespace collision detected."

Question

What’s the correct way to format the atomic PATCH so the context refresh triggers without hitting the max variable count? The personalization callback just hangs and the audit logs show nothing.