サポートされる製品
サポートされる製品
次のいずれかの製品またはそれ以上が必要です。
必須スコープ
必須スコープ
この API には、次のいずれかのスコープが必要です。
crm.objects.marketing_events.writeAuthorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
curl --request POST \
--url https://api.hubapi.com/marketing/v3/marketing-events/events/upsert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"inputs": [
{
"startDateTime": "2023-11-07T05:31:56Z",
"customProperties": [
{
"sourceId": "",
"selectedByUser": false,
"sourceLabel": "",
"sourceUpstreamDeployable": "<string>",
"source": "",
"updatedByUserId": 123,
"persistenceTimestamp": 123,
"sourceMetadata": "",
"dataSensitivity": "",
"sourceVid": "",
"unit": "",
"requestId": "",
"isEncrypted": false,
"name": "",
"useTimestampAsPersistenceTimestamp": true,
"value": "",
"selectedByUserTimestamp": 123,
"timestamp": 123,
"isLargeValue": true
}
],
"externalAccountId": "<string>",
"eventCancelled": true,
"eventOrganizer": "<string>",
"eventUrl": "<string>",
"externalEventId": "<string>",
"eventDescription": "<string>",
"eventName": "<string>",
"eventType": "<string>",
"eventCompleted": true,
"endDateTime": "2023-11-07T05:31:56Z"
}
]
}'{
"completedAt": "2023-11-07T05:31:56Z",
"numErrors": 123,
"requestedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"links": {},
"results": [
{
"eventOrganizer": "<string>",
"eventUrl": "<string>",
"eventType": "<string>",
"eventCompleted": true,
"endDateTime": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"startDateTime": "2023-11-07T05:31:56Z",
"customProperties": [
{
"sourceId": "",
"selectedByUser": false,
"sourceLabel": "",
"sourceUpstreamDeployable": "<string>",
"source": "",
"updatedByUserId": 123,
"persistenceTimestamp": 123,
"sourceMetadata": "",
"dataSensitivity": "",
"sourceVid": "",
"unit": "",
"requestId": "",
"isEncrypted": false,
"name": "",
"useTimestampAsPersistenceTimestamp": true,
"value": "",
"selectedByUserTimestamp": 123,
"timestamp": 123,
"isLargeValue": true
}
],
"eventCancelled": true,
"eventDescription": "<string>",
"eventName": "<string>",
"id": "<string>",
"objectId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"errors": [
{
"subCategory": "",
"context": "",
"links": "",
"id": "",
"category": "",
"message": "",
"errors": "",
"status": ""
}
],
"status": "PENDING"
}複数のマーケティングイベントを更新/挿入します。指定されたIDのマーケティングイベントがすでに存在する場合は、更新されます。存在しない場合は、新しいイベントが作成されます。
更新できるのは、同じアプリで最初に作成されたマーケティングイベントのみです。
curl --request POST \
--url https://api.hubapi.com/marketing/v3/marketing-events/events/upsert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"inputs": [
{
"startDateTime": "2023-11-07T05:31:56Z",
"customProperties": [
{
"sourceId": "",
"selectedByUser": false,
"sourceLabel": "",
"sourceUpstreamDeployable": "<string>",
"source": "",
"updatedByUserId": 123,
"persistenceTimestamp": 123,
"sourceMetadata": "",
"dataSensitivity": "",
"sourceVid": "",
"unit": "",
"requestId": "",
"isEncrypted": false,
"name": "",
"useTimestampAsPersistenceTimestamp": true,
"value": "",
"selectedByUserTimestamp": 123,
"timestamp": 123,
"isLargeValue": true
}
],
"externalAccountId": "<string>",
"eventCancelled": true,
"eventOrganizer": "<string>",
"eventUrl": "<string>",
"externalEventId": "<string>",
"eventDescription": "<string>",
"eventName": "<string>",
"eventType": "<string>",
"eventCompleted": true,
"endDateTime": "2023-11-07T05:31:56Z"
}
]
}'{
"completedAt": "2023-11-07T05:31:56Z",
"numErrors": 123,
"requestedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"links": {},
"results": [
{
"eventOrganizer": "<string>",
"eventUrl": "<string>",
"eventType": "<string>",
"eventCompleted": true,
"endDateTime": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"startDateTime": "2023-11-07T05:31:56Z",
"customProperties": [
{
"sourceId": "",
"selectedByUser": false,
"sourceLabel": "",
"sourceUpstreamDeployable": "<string>",
"source": "",
"updatedByUserId": 123,
"persistenceTimestamp": 123,
"sourceMetadata": "",
"dataSensitivity": "",
"sourceVid": "",
"unit": "",
"requestId": "",
"isEncrypted": false,
"name": "",
"useTimestampAsPersistenceTimestamp": true,
"value": "",
"selectedByUserTimestamp": 123,
"timestamp": 123,
"isLargeValue": true
}
],
"eventCancelled": true,
"eventDescription": "<string>",
"eventName": "<string>",
"id": "<string>",
"objectId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"errors": [
{
"subCategory": "",
"context": "",
"links": "",
"id": "",
"category": "",
"message": "",
"errors": "",
"status": ""
}
],
"status": "PENDING"
}サポートされる製品
必須スコープ
crm.objects.marketing_events.writeThe access token received from the authorization server in the OAuth 2.0 flow.
Show child attributes
successful operation
Show child attributes
PENDING, PROCESSING, CANCELED, COMPLETE Show child attributes
Show child attributes