How to make bulk updates on prices and quantities via API on python?

Hi I very much appreciated the answer, was even faster than I could catch up… :grinning_face_with_smiling_eyes:

Tried update_products_in_bulk to update inventory in bulk with adjust.json does not worked, below is the data used before json.dumps({“inventory_levels” : batch}):

data= [{‘location_id’: 62155718791, ‘inventory_item_id’: 49236282179922, ‘available’: 0}, {‘location_id’: 62155718791, ‘inventory_item_id’: 49236282212690, ‘available’: 0}, {‘location_id’: 62155718791, ‘inventory_item_id’: 49236282245458, ‘available’: 0}, {‘location_id’: 62155718791, ‘inventory_item_id’: 42498772729991, ‘available’: 0}, {‘location_id’: 62155718791, ‘inventory_item_id’: 42535159529607, ‘available’: 0}]

Error updating batch 1: Status Code 400, Response: {“errors”:{“inventory_item_id”:“Required parameter missing or invalid”}}

===

On bulk_update_inventory I tried change the version to 2024-01 but also did not work, data used:

data= {‘inventoryItemAdjustments’: [{‘inventoryLevelId’: ‘gid://shopify/InventoryItem/49236282179922’, ‘availableDelta’: 0}, {‘inventoryLevelId’: ‘gid://shopify/InventoryItem/49236282212690’, ‘availableDelta’: 0}, {‘inventoryLevelId’: ‘gid://shopify/InventoryItem/49236282245458’, ‘availableDelta’: 0}, {‘inventoryLevelId’: ‘gid://shopify/InventoryItem/42498772729991’, ‘availableDelta’: 0}, {‘inventoryLevelId’: ‘gid://shopify/InventoryItem/42535159529607’, ‘availableDelta’: 0}], ‘locationId’: ‘gid://shopify/Location/62155718791’}

Processed batch 1/1: {“errors”:[{“message”:“Field ‘inventoryBulkAdjustQuantityAtLocation’ doesn’t exist on type ‘Mutation’”,“locations”:[{“line”:3,“column”:9}],“path”:[“mutation”,“inventoryBulkAdjustQuantityAtLocation”],“extensions”:{“code”:“undefinedField”,“typeName”:“Mutation”,“fieldName”:“inventoryBulkAdjustQuantityAtLocation”}},{“message”:“Variable $inventoryItemAdjustments is declared by anonymous mutation but not used”,“locations”:[{“line”:2,“column”:9}],“path”:[“mutation”],“extensions”:{“code”:“variableNotUsed”,“variableName”:“inventoryItemAdjustments”}},{“message”:“Variable $locationId is declared by anonymous mutation but not used”,“locations”:[{“line”:2,“column”:9}],“path”:[“mutation”],“extensions”:{“code”:“variableNotUsed”,“variableName”:“locationId”}}]}

:disappointed_face: