Skip to main content
Solved

Rest PUT single record or multiple at one time?

  • Aug 22, 2023 10:07 PM UTC
  • 3 replies
  • 326 views
  • Translate All

jamest
Varsity I
Forum|alt.badge.img

Hello all, 

We will be using the api’s to create new stock items as needed. Does Acumatica have the ability to accept a PUT command to Stock Items with multiple records? Or should we just loop through the needed records and create them individually? Thanks

Best answer by sweta68

Hi @jamest ,

Acumatica does not support using a single PUT command to create multiple stock items simultaneously to ensure data integrity and to simplify error handling. To add multiple stock items, you will need to loop through the individual records and create them one by one.

Regards,

Sweta

View original

3 replies

Forum|alt.badge.img+3
  • Jr Varsity I
  • Aug 23, 2023 3:30 AM UTC

Hi,

The put request on top-level objects don’t accept arrays. It seems you would have to loop through the records to add multiple stock items. 

Translate

Forum|alt.badge.img+9
  • Semi-Pro III
  • Answer
  • Aug 23, 2023 7:03 AM UTC

Hi @jamest ,

Acumatica does not support using a single PUT command to create multiple stock items simultaneously to ensure data integrity and to simplify error handling. To add multiple stock items, you will need to loop through the individual records and create them one by one.

Regards,

Sweta

Translate

jamest
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • Aug 23, 2023 12:29 PM UTC

Sounds good. Thanks for the quick replies. 

Translate