APIs & Integrations

gtelljohann
Member

When updating a timeline event, what happens to previously set properties that are not sent again?

SOLVE

When updating a timeline event, what happens to previously set properties that are not sent again?  For example, if I set property A when I first create the timeline event, but then later update the same event by sending property B, but not property A, will property A remain set to the value that I initially sent it or be set to nothing?

0 Upvotes
1 Accepted solution
Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

When updating a timeline event, what happens to previously set properties that are not sent again?

SOLVE

Hey @gtelljohann ,

 

If you create a timeline event with a certain subset of properties, and later update that same event without including values for those properties, they will retain their original values.

 

For example, if I create the following event:

{
  "id": "12345",
  "objectId": 151,
  "eventTypeId": "18777",
  "amount" : 123
}

And later update that same event:

{
  "id": "12345",
  "objectId": 151,
  "eventTypeId": "18777",
  "link": "https://www.hubspot.com"
}

I can get the details for that event and see the following:

{
  "id": "12345",
  "objectId": 151,
  "eventTypeId": "18777",
  "amount" : 123,

  "link": "https://www.hubspot.com"
}

View solution in original post

0 Upvotes
2 Replies 2
Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

When updating a timeline event, what happens to previously set properties that are not sent again?

SOLVE

Hey @gtelljohann ,

 

If you create a timeline event with a certain subset of properties, and later update that same event without including values for those properties, they will retain their original values.

 

For example, if I create the following event:

{
  "id": "12345",
  "objectId": 151,
  "eventTypeId": "18777",
  "amount" : 123
}

And later update that same event:

{
  "id": "12345",
  "objectId": 151,
  "eventTypeId": "18777",
  "link": "https://www.hubspot.com"
}

I can get the details for that event and see the following:

{
  "id": "12345",
  "objectId": 151,
  "eventTypeId": "18777",
  "amount" : 123,

  "link": "https://www.hubspot.com"
}

0 Upvotes
gtelljohann
Member

When updating a timeline event, what happens to previously set properties that are not sent again?

SOLVE

Great, thanks!  I hoped that would be how it worked, but I wasn't sure from the docs