Zum Hauptinhalt springen
PATCH
/
marketing
/
v3
/
marketing-events
/
{objectId}
Mettre à jour un événement marketing par ID d'objet
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"
}
Produits pris en charge
Exige l'un des produits suivants ou un produit supérieur.
Marketing HubMarketing HubGratuit
Sales HubSales HubGratuit
Service HubService HubGratuit
Content HubContent HubStarter

Portées requises

Cette API requiert l’une des portées suivantes :
  • 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

L'ID interne de l'événement marketing dans HubSpot

Body

application/json
customProperties
object[]
required
startDateTime
string<date-time>
eventCancelled
boolean
eventOrganizer
string
eventUrl
string
eventDescription
string
eventName
string
eventType
string
endDateTime
string<date-time>

Response

successful operation

createdAt
string<date-time>
required
customProperties
object[]
required
eventName
string
required
objectId
string
required
updatedAt
string<date-time>
required
eventOrganizer
string
eventUrl
string
appInfo
object
eventType
string
eventCompleted
boolean
endDateTime
string<date-time>
startDateTime
string<date-time>
eventCancelled
boolean
eventDescription
string
I