As an example I have a custom property, Current Period End Date, under Contact Information of a customer profile. Using the /crm/v3/objects/contacts/{contactId} endpoint I am not able to get this field to return anything for a test cutomer that had the property value defined. I have tried adding properties=CurrentPeriodEndDate (property name without spaces), this seems to work for some other properties, but I do not get anything back. Coud someone please clarify what I am doing wrong?
Hey, @CDzieg👋 Thanks for sticking with me. If you want to update the value of a custom property for a specific record, a Contact for example, we can use this endpoint and a PATCH request — Update.
Here's an example using the test property we created from before — current_period_end_date:
I have a Contact with an existing value for this property. It was set as 1-30-23.
Using the on-page example. Endpoint used PATCH/crm/v3/objects/contacts/{contactId}
Hi, @CDzieg👋 One quick request, can you navigate to Settings > Properties > Contacts and click into your custom property, please? We can verify the Internal name for this property. This should give you the correct value to include in your request.
I did a quick test and used your property name. Here's a screenshot:
Then you can make a request to the endpoint that would look like this (or use the internal value for your property if it is different)
curl --request GET \
--url 'https://api.hubapi.com/crm/v3/objects/contacts/901?properties=current_period_end_date&archived=false
Hey, @CDzieg👋 Thanks for sticking with me. If you want to update the value of a custom property for a specific record, a Contact for example, we can use this endpoint and a PATCH request — Update.
Here's an example using the test property we created from before — current_period_end_date:
I have a Contact with an existing value for this property. It was set as 1-30-23.
Using the on-page example. Endpoint used PATCH/crm/v3/objects/contacts/{contactId}