OS1 Services
...
Container
Integrate with Containers
How To: Create & Update Containers In Batch
4min
for information about prerequisites, see integrate with containers docid\ v8jhivhg c9txkmpqsbxu batch endpoints are provided to create and update containers in batches the batch endpoints support two methods to supply the container data json csv file upload create containers in batch via json to create containers in batch, call the create container in batches docid\ g6gexhp6x4ezbedk 8oby endpoint and specify the containertypepluralname in the path parameter learn more about the necessary container docid 84wc3sojyiq92xsenyfzo listed for creating containers in batch using the json the following examples show a request body for creating a batch containers request { "parentid" "pallet 9c9b1138 7cdd 11eb 9439 0242ac130002", "childcontainertype" "palletchild", "childids" \[ "palletchild 9c9b1138 7cdd 11eb 9439 0242ac130002", "palletchild 9c9b1138 7cdd 11eb 9439 0242ac130003" ], "substate" "closed", "trackingdetails" \[ { "operator" "delhivery", "trackingid" "132121232423232", "isprimary" false } ], "attributes" {}, "items" \[ { "name" "pant/shirt", "code" "string", "cost" { "unit" { "amount" 0, "currency" "string" }, "total" { "amount" 0, "currency" "string" } }, "quantity" { "value" 0, "unit" "cm" } } ], "scannableid" "string", "ishazmat" false, "iscontainerizable" true, "isreusable" false, "action" "containerize", "callback" { "url" "https //www examplecallback com", "meta" "string" } } create containers in batch via csv upload to create containers in batch through csv, call the perform create operation on container via file upload docid\ hwd9dzywsnpiqxlnap7kb endpoint and specify containertypepluralname in the path parameter upload the csv file with all the details as shown in the sample csv updating containers in batch via json to update containers in batch, call the perform update operation on container in batches docid\ kcmq0efgrbzjv5sj83 rd endpoint and specify containertypepluralname in the path parameter the following examples show a request body for updating a batch container request { "payload" \[ { "containerid" "pallet 3fe393b3 94d6 4fe6 b6e3 xxxxxxx", //use actual containerid "data" { "trackingdetails" \[ { "operator" "queens", "trackingid" "1321212324232327", "isprimary" false } ], "attributes" { }, "ishazmat" false, "iscontainerizable" true } } ] } updating containers in batch via csv upload to update containers in batch through csv, call the perform update operation on container via file upload docid\ nwsskhh9t4ippthucgpao endpoint and specify containertypepluralname in the path parameter upload the csv file with all the details as shown in the sample csv retrieve container batch status to retrieve the information about containers in batch processing, call the get the status of batch file request docid 9ynxqqivni7 hjf0dhhpg endpoint and pass the containertypepluralname , batchid in the path parameter this process is common to both json and csv based apis