- Joined
- Dec 5, 2024
- Messages
- 20
- Reaction score
- 14
I am using the 3CX API for various things and one client asked if I can sync their contact list, via a CSV from another location.
There are a few things making this difficult from just a time perspective.
1. The list of contacts is large, several thousands.
2. Contacts might be updated and do not have an ID number in the original data that can be used as to reference these changes.
3. They want the data synced daily.
Since I cannot just check for updates, I have to bulk delete and readd daily.
I can sync the data, but since the script is doing them "one at a time", it is a bit slow.
There are API endpoints for bulk delete, but from the swagger I do not see anything on a bulk import or a import csv option, which would completely solve this issue since I could normalize the CSV data, and just dump that over in a single API call.
Anyone have any suggestions or done something similar in the past?
I know in the admin console under system->phonebook there is the option to import, I basically just need whatever that is doing to be accessible via the API.
There are a few things making this difficult from just a time perspective.
1. The list of contacts is large, several thousands.
2. Contacts might be updated and do not have an ID number in the original data that can be used as to reference these changes.
3. They want the data synced daily.
Since I cannot just check for updates, I have to bulk delete and readd daily.
I can sync the data, but since the script is doing them "one at a time", it is a bit slow.
There are API endpoints for bulk delete, but from the swagger I do not see anything on a bulk import or a import csv option, which would completely solve this issue since I could normalize the CSV data, and just dump that over in a single API call.
Anyone have any suggestions or done something similar in the past?
I know in the admin console under system->phonebook there is the option to import, I basically just need whatever that is doing to be accessible via the API.