Do we need to change from POST v1/contacts/batch endpoint when migrating from api key to private app? I made changes to the python script we were using, but when I run the script I get results of 202 and the contacts do not get updated. Do private apps not work with that endpoint?
I am pretty new to python and inherited the file from a previous coworker. I read through the documentation about migration to private app and through many other posts regarding different issues they were having. I made changes like commenting out where the api key is being used and added in the private app token teh best I could for now at least. Since then, any time I run the script I do get the 202 message like what is yours and thought that it is an error - especially since no changes are being posted to the contacts file. The file does not just auto run right now for multiple reasons 1) have not deleted api key since it is currently still working with the older way of api key until I get this sorted 2) I am just using a copy of the original script and manually run to see if it works. It does update the csv file on our end just doesn't push it to Hubspot 3) I have been concerned that we may need to also migrate to vs and do it differently including using things like the hubspot import api and stuff that we have no been using - especaially since I have not found any examples out there in people's posts about the migration using the v1 endpoint
Here are snips of the code shopwing where I commented out api key and inserted access token. I do not even know how to get this to run in postman so I can see how it will work (again newbie here)
Response: 202 Accepted Screenshots of updated records:
If you continue to have issues, can you share a simple request and response example, please? Having details can help the community understand how they can assist or troubleshoot.