marketing events update subscriber state 405 when using "post" method

Dear Forum,

I am currently accessing the marketing event api within the automation platform “MAKE” and wanted to update subscriber states with the post method (for adding attendees to the event). About three weeks ago I succesfully updated the subscriber states referencing a static list and using “upsert”.

Now I am getting a 405 error with the response “Method not allowed”.

It seems like “post” is not supported anymore - Has anyone experienced the same or an idea how to solve the problem?

LuisvT_0-1661163505460.png

Hey, @LuisvT Thanks for reaching out. From the HubSpot side, the endpoints found here —Marketing Events API allow for testing from the dev docs. You can also use something like Postman to set up a quick test and verify the endpoint itself works as you are expecting outside your 3rd party automation tool.

To confirm, you are making a request to one of the two Subscriber State Changes endpoints?

POST /marketing/v3/marketing-events/events/{externalEventId}/{subscriberState}/email-upsert

POST /marketing/v3/marketing-events/events/{externalEventId}/{subscriberState}/upsert

Hey, @JBeatty @jpsanchez, did I miss anything troubleshooting related here?

Thank you for taking a look! — Jaycee

@Jaycee_Lewis thanks for your reply! I was already using the

POST /marketing/v3/marketing-events/events/{externalEventId}/{subscriberState}/upsert

endpoint and with different event id´s it was working before. But then we decided to create the event ids based on the name of the events and some event names had [ ] in them. I think that was the problem and the eventId was not recognized properly. As a result a 405 error has occured. When I changed the system to use just a GUID as EventId it was working again.

I was also searching for resources that describe the character requirements for EventId´s but I could not find any.

Luckily this 405 is not an issue anymore.

Hi @LuisvT, thanks for letting the community know what the issue was and how you resolved it! — Jaycee