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

SOLVE
New Contributor

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?

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
Community Manager

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"
}

Reply
0 Upvotes
2 Replies 2
Highlighted
Community Manager

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"
}

Reply
0 Upvotes
New Contributor

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