I'm very confused by the update in the changelog from https://developers.klaviyo.com/en/docs/changelog_#relationship-standardization
We use the API to create events on behalf of our customers, and we identify the profiles by email.
I tried updating our API to the latest version , and I'm getting an error:
'{"errors":[{"id":"8f145b8b-43ae-401f-9cee-15983ceaa522","status":400,"code":"invalid","title":"Invalid
input.","detail":"One of `attributes`, `relationships` or `id` must be included
in the request payload.","source":{"pointer":"/data"},"meta":{}}]}'
I find the API documentation not very clear. There aren't examples of adding the event through email that was possible, or maybe I'm missing something?
Solved
Is creation by profile email still allowed in the latest api version?
Best answer by diegoeche
Actually, figured it out…
I didn't put the metric event name in the attributes. But gosh, the error message could have been clearer. Instead of "pointer/data" maybe tell me /pointer/metric/data.
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

