OS1 Services
...
Integrate with Containers
How To: Create & Update Containers In Batch
4 min
for information about prerequisites, see 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 docid\ g6gexhp6x4ezbedk 8oby endpoint and specify the containertypepluralname in the path parameter learn more about the necessary 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 docid\ hwd9dzywsnpiqxlnap7kb endpoint and specify containertypepluralname in the path parameter upload the csv file with all the details as shown in the https //github com/os1 logistics/bulk upload reference templates/blob/main/container/batch create container csv updating containers in batch via json to update containers in batch, call the 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 docid\ nwsskhh9t4ippthucgpao endpoint and specify containertypepluralname in the path parameter upload the csv file with all the details as shown in the https //github com/os1 logistics/bulk upload reference templates/blob/main/container/batch update container csv retrieve container batch status to retrieve the information about containers in batch processing, call the docid 9ynxqqivni7 hjf0dhhpg endpoint and pass the containertypepluralname , batchid in the path parameter this process is common to both json and csv based apis