Marketing events APi

I can create an event through the api, but when i want a user to set it’s attendance i always get the following error.

{ "status": "error", "message": "externalAccountId is required", "correlationId": "9d197a12-ced1-450d-ac68-96bdeb1a0c40"}

Anybody an idea how to fix this or can make it work?

But in my call i give a externalId with it? The externalId is the same name as the marketingEvent name just to make it unique.

curl --location 'https://api.hubapi.com/marketing/v3/marketing-events/attendance/632552/attend/email-create' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <TOKEN>' \--data-raw '{ "inputs": [ { "interactionDateTime": 0, "email": "john@doe.com", } ]}'

Hi @Elty

Use updated curl. And also put the value in required variables like {externalEventId} and {externalAccountId}

curl --request POST \
--url ‘https://api.hubapi.com/marketing/v3/marketing-events/attendance/{externalEventID}/attend/email-create?externalAccountId={externalAccountId}’ \
--header ‘authorization: Bearer YOUR_ACCESS_TOKEN’ \
--header ‘content-type: application/json’ \
--data ‘{
“inputs”: [
{
“interactionDateTime”: 0,
“email”: “mayank.sharma@growthnatives.com
}
]
}’

Hope this will helps you out. Please mark it as Solution Accepted & Upvote to help other Community member.
Thanks!

yeah that was the problem indeed! you are a hero! thanks :grinning_face_with_smiling_eyes: