I need to create 1000 objects in the user directory. Now one request creates one object, respectively, this business takes a lot of time. Maybe there is some other way?

  • Can create at once the necessary number of objects? - Andrei Alexandru

1 answer 1

The documentation does not show the mass creation of objects in the user directory, but when prompted

curl -X POST \ https://online-18.moysklad.ru/api/remap/1.1/entity/customentity/{your_entity_id} \ -H 'Authorization: Basic YOUR_AUTH' \ -H 'Content-Type: application/json' \ -H 'Postman-Token: POSTMAN_TOKEN' \ -H 'cache-control: no-cache' \ -d '[ { "name": "world" }, { "name": "another world" } ]' 

You can create many objects in the directory. You can see how mass creation takes place in other entities in a similar way.