curl --request PATCH \
--url https://api.hubapi.com/marketing/v3/marketing-events/{objectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"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,
"eventOrganizer": "<string>",
"eventUrl": "<string>",
"eventDescription": "<string>",
"eventName": "<string>",
"eventType": "<string>",
"endDateTime": "2023-11-07T05:31:56Z"
}'
{
"eventOrganizer": "<string>",
"eventUrl": "<string>",
"appInfo": {
"name": "<string>",
"id": "<string>"
},
"eventType": "<string>",
"eventCompleted": true,
"endDateTime": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"startDateTime": "2023-11-07T05:31:56Z",
"customProperties": [
{
"name": "<string>",
"value": "<string>"
}
],
"eventCancelled": true,
"eventDescription": "<string>",
"eventName": "<string>",
"objectId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
Updates the details of an existing Marketing Event identified by its objectId, if it exists.
curl --request PATCH \
--url https://api.hubapi.com/marketing/v3/marketing-events/{objectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"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,
"eventOrganizer": "<string>",
"eventUrl": "<string>",
"eventDescription": "<string>",
"eventName": "<string>",
"eventType": "<string>",
"endDateTime": "2023-11-07T05:31:56Z"
}'
{
"eventOrganizer": "<string>",
"eventUrl": "<string>",
"appInfo": {
"name": "<string>",
"id": "<string>"
},
"eventType": "<string>",
"eventCompleted": true,
"endDateTime": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"startDateTime": "2023-11-07T05:31:56Z",
"customProperties": [
{
"name": "<string>",
"value": "<string>"
}
],
"eventCancelled": true,
"eventDescription": "<string>",
"eventName": "<string>",
"objectId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
crm.objects.marketing_events.write
The access token received from the authorization server in the OAuth 2.0 flow.
The internal ID of the marketing event in HubSpot
successful operation
The response is of type object
.
Was this page helpful?