Skip to main content
Solved

Rest PUT single record or multiple at one time?

  • August 22, 2023
  • 3 replies
  • 256 views

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

3 replies

Forum|alt.badge.img+3
  • Jr Varsity I
  • August 23, 2023

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. 


Forum|alt.badge.img+9
  • Semi-Pro III
  • Answer
  • August 23, 2023

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


jamest
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • August 23, 2023

Sounds good. Thanks for the quick replies.