I am using the event-bulk-create-jobs API endpoint to create events that also update profile properties. I have found when using this endpoint that if all the properties that I’m trying to update are being set to 0, then the updates do not actually get applied to the profiles.
Here is an example:
{
"data": {
"type": "event-bulk-create-job",
"attributes": {
"events-bulk-create": {
"data": a{
"type": "event-bulk-create",
"attributes": {
"profile": {
"data": {
"type": "profile",
"attributes": {
"email": "notmyrealemail@gmail.com",
"properties": {"custom property": 0}
}
}
},
"events": {
"data": a{
"type": "event",
"attributes": {
"metric": {
"data": {
"type": "metric",
"attributes": {
"name": "info_update"
}
}
},
"time": "2025-03-31T17:07:29+0000",
"properties": {}
}
}]
}
}
}]
}
}
}
}
If I post that data to event-bulk-create-jobs, the “custom property” will not get set on the profile. However, if I use 1 instead of 0 as the value to set it to, or if I include any other attributes or properties being set to nonzero values, then the update gets applied correctly.
This problem only occurs with the event-bulk-create-jobs endpoint. If I use the profile-bulk-import-jobs endpoint, the profile properties get correctly updated even if all the updates involve setting values to 0.