Bulk upsert API endpoint for custom modules (Freshsales)

Hi all,

I see there are API endpoints for Bulk upserting contacts, sales accounts, etc. I have a use case where I need to bulk insert new Freshsales Custom Module records. Is such an request available? Looking at the API documentation I only see the api/custom_module/[entity_name]/bulk_destroy endpoint for bulk deleting custom records.

Thank you!

Edgars

Hi @Edgars_Lazdins,

Greetings, and welcome to the community! :tada:

Unfortunately, it might not be possible if it’s not mentioned in the documentation.

However, you could consider creating them in a sequential manner as an alternative.

Thank you.

Thank you Benny for the response! Unfortunately with the sequential approach we quickly run into issues due to the 50 API requests per minute rate limit. Will look for other approaches, thanks.

Hi @Edgars_Lazdins

Yes, for that you have to add a logic where if you encounter the error with the status code of 429 retry it after 65 seconds.

Which will run till you run out of modules to create.