API3
hachonda at August 2nd, 2017 13:15 — #1
Hi ;
I need to update many of my current customer website address details in bulk but the bulk data upload will not actually overwrite existing customer details.
I think that the API is the best way of doing this, using PUT requests to update (overwrite) current customer fields.
I have managed to POST JSON Data to make a new contact in postman, but
a PUT request returns the following error without the contact id in the request url,
{
"status": 404,
"message": "Resource not found",
"error_name": "resource_not_found",
"error_message": "Requested page has not been found",
"errors": {}
}
It looks like I can only update one contact at a time.
Is it currently possible to use the API to PUT Json data into our OnePage CRM account using Postman without always including the contact id in the request URL to, for example,
bulk update all contact website addresses?
Is there a more effective way of mass updating current customer information?
hachonda at August 3rd, 2017 04:29 — #2
I thought I would add on to my question by adding a screenshot of one thing I tried In postman to PUT data:
Can the OnePage CRM API actually be used to mass update (PUT) contact info?
From the documentation it looks like you can only partially update one contact at a time as you need the id in the PUT request.
johnmag at August 3rd, 2017 07:53 — #3
Hi @hachonda
No bulk operations are possible via the API.
My best suggestion for you would be to write a program to iterate over all of the contact ids you would like to change and make an individual API request for each one.
Let me know how that works for you.
-John
hachonda at August 4th, 2017 04:27 — #4
Hi @JohnMagThanks for clearing that up for me...
Ill see how I can get along, and hopefully come up with something that works.
currently trying in PHP...
Powered by Discourse, best viewed with JavaScript enabled