Problem with batch update of Contacts by api calls

batch
contacts

#1

Hi,
Im trying to develop program to update contacts by api calls. I want to make it by batch calls, just to save the amount of calls.
So i tried the method described:

my call url is:
https://api.hubapi.com/contacts/v1/contact/batch/?hapikey=______________________
and body:
[
{
"vid": "1551",
"properties": [
{
"property": "firstname",
"value": "Harper"
},
{
"property": "company__c",
"value": "Testowo 123"
}
]
}
]

unfourtunetly system responds me with http code 200 instad of 202, and there are no changes in the Contact data

regards,

Jakub Krawczyk


#2

Hi @Jakub_Krawczyk,

Are you including the correct Content-type: application/json header? If this header is missing, it can sometimes cause strange issues (like updates being dropped).