Subscriber State Changes
Record a subscriber state by contact ID
Changed onRecord a subscriber state between multiple HubSpot contacts and a marketing event, using HubSpot contact IDs. Note that the contact must already exist in HubSpot; a contact will not be created.
post/marketing/v3/marketing-events/events/{externalEventId}/{subscriberState}/upsert
Request
- Base URLhttps://api.hubapi.com
- AuthOAuth 2Authorization codehttps://app.hubspot.com/oauth/authorizeToken URLhttps://api.hubapi.com/oauth/v1/tokenScopescrm.objects.marketing_events.write
Path parameters
externalEventIdstring required
The id of the marketing event in the external event application
subscriberStatestring required
The new subscriber state for the HubSpot contacts and the specified marketing event. For example: 'register', 'attend' or 'cancel'.
Query parameters
externalAccountIdstring required
The accountId that is associated with this marketing event in the external event application
Request body
Response
An error occurred.
Example response
{
"message": "Invalid input (details will vary based on the error)",
"correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
"category": "VALIDATION_ERROR",
"links": {
"knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
}
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking