APIs & Integrations

kevinmannix
Mitglied

Clearing Contact Property fields

I’d like to “clear” a specific Contact’s property value. In this instance, the property type is a DatePicker.

I am using the url POST /contacts/v1/contact/createOrUpdate to update other properties - can I clear a property value in the request? What value would I need to send up with the property to clear this field?

0 Upvotes
2 Antworten
kevinmannix
Mitglied

Clearing Contact Property fields

Thanks! Makes sense.

0 Upvotes
3PETE
HubSpot Employee
HubSpot Employee

Clearing Contact Property fields

@kevinmannix You can just use an empty string in your request. Here is a copy of the body I used.

{
            "properties": [
                
                {
                    "property": "firstname",
                    "value": ""
                }
            ]
}

Here is the history as proof of the change

0 Upvotes