splitch

DocsAPIENTITY_TYPE_MISMATCH.md

ENTITY_TYPE_MISMATCH

HTTP status
400
Details payload
{ expectedIdType: string | null, receivedIdType: string, eventDefinitionId: string, metricId?: string, runId?: string }

Cause

The Metric Event's Entity type did not match the Entity type declared by its published Event Definition Version.

Fix

Send the Metric Event with the declared Entity type. If the Event Definition now describes a different Entity type, publish a new Version and then retry.

Related codes