Contact API POST

Hi Team,

I am trying to update Custom Contact Field which is of type “Date Time”. When I try to update contact with POST Method .

I have tried changing pandas data frame field into datetime(python).But I am able to see the rest call succeeding but the data is not posting to AC.

df[‘CREATED_AT’] = pd.to_datetime(df[‘CREATED_AT’])

Could you please give suggestion on how we could update “date/date time” custom fields using python.

Thanks in advance !

Thanks !

1 Like

This is most likely caused by the date/string value for the custom field is not in the correct format. There are also several other steps involved in assigning a custom field to a contact: Here’s the a complete guide: Contact Custom Fields API Guide

More on field values:Create a custom field value