Create Bulk Operation
Create a new bulk operation.
Authorizations
API Scope: "Bulk Operations (write)"
Body
The JSONL file containing the data for the bulk operations.
Each line contains an individual operation, formatted as follows:
{"type": "{job type}", "parameters": {}, "payload": {}}
The following job types are supported:
order_createorder_updateorder_upsertorder_deleteproduct_createproduct_updateproduct_upsertproduct_deleteproduct_variant_createproduct_variant_updateproduct_variant_upsertproduct_variant_deletecollection_createcollection_updatecollection_upsertcollection_deleteinventory_upsertinventory_delete
For most job types, id is the only parameter.
Product variant jobs require id to be the product variant ID and productId to be the product ID.
Payload details can be found in the documentation for each job, linked above.
Lines must be separated with \n.
There is no limit to the number of lines that can be included in a file, but bulk operation files are limited to 2 MB in size.
Response
Success