POST
/
marketing
/
v3
/
marketing-events
/
{objectId}
/
attendance
/
{subscriberState}
/
email-create
Teilnehmer nach E-Mail anhand der Objekt-ID des Marketingevents aufzeichnen
curl --request POST \
  --url https://api.hubapi.com/marketing/v3/marketing-events/{objectId}/attendance/{subscriberState}/email-create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "inputs": [
    {
      "contactProperties": {},
      "properties": {},
      "email": "<string>",
      "interactionDateTime": 123
    }
  ]
}'
{
  "completedAt": "2023-11-07T05:31:56Z",
  "numErrors": 123,
  "requestedAt": "2023-11-07T05:31:56Z",
  "startedAt": "2023-11-07T05:31:56Z",
  "links": {},
  "results": [
    {
      "vid": 123,
      "email": "<string>"
    }
  ],
  "errors": [
    {
      "subCategory": "",
      "context": "",
      "links": "",
      "id": "",
      "category": "",
      "message": "",
      "errors": "",
      "status": ""
    }
  ],
  "status": "PENDING"
}
Unterstützte Produkte
Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing HubKostenlos
Sales HubSales HubKostenlos
Service HubService HubKostenlos
Content HubContent HubStarter

Erforderliche Bereiche

Diese API erfordert einen der folgenden Bereiche:
  • crm.objects.marketing_events.write

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

objectId
string
required

Die interne ID des Marketingevents in HubSpot

subscriberState
string
required

Der Wert des Teilnehmerstatus. Mögliche Werte: „register“, „attend“ oder „cancel“

Body

application/json

Response

200
application/json

successful operation

The response is of type object.