Skip to main content
Solved

Best way to Batch Rest API Calls

  • October 3, 2024
  • 2 replies
  • 202 views

Forum|alt.badge.img+1

Hello all,

 

I need to Nightly update 200-500 Projects Tasks to Completed and then Run the Allocation through the REST API. Works great for 1 project 1 task. But I will need to many each night. Is there a way to batch them in instead of 1 call to ProjectTask and 1 to run the Allocation?  IS the REST API not the best way to do it?

 

Thank you

Best answer by Dmitrii Naumov

REST API does not support batching of the requests. You can do it with something like Import scenarios instead, but I’d say if you do it nightly, then 200-500 updates should not be a problem. It should take ~5-20 minutes to complete. 

2 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • Answer
  • October 3, 2024

REST API does not support batching of the requests. You can do it with something like Import scenarios instead, but I’d say if you do it nightly, then 200-500 updates should not be a problem. It should take ~5-20 minutes to complete. 


Forum|alt.badge.img+1
  • Author
  • Varsity I
  • October 3, 2024

Thank you, I guess I just need be mindful of the API per Min Rate Limit.