Set Mapping
set_mappingCreate or update a mapping at the given scope. Uniqueness is on (scope, kind, source) — re-setting an existing source overwrites the target. Returns null if the target is not a valid canonical for the kind.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Either IDENTITY_FIELD or EVENT_TYPE. | |
| scope | Yes | Either CUSTOMER or GLOBAL. | |
| source | Yes | Customer-supplied source name, e.g. 'nombre' or 'user_registered'. | |
| target | Yes | Canonical value the source maps to, e.g. 'FULL_NAME' (for IDENTITY_FIELD) or 'REGISTRATION' (for EVENT_TYPE). | |
| description | No | Optional human-readable description for trainers/LLM context. |