cURL
curl --request POST \ --url 'http://{{baseurl}}/api/v1/productBatches' \ --header 'Content-Type: application/json' \ --data ' { "batch_number": 123, "current_quantity": 123, "current_temperature": 123, "due_date": "2023-12-25", "initial_quantity": 123, "manufacturing_date": "2023-12-25", "manufacturing_hour": 123, "minumum_temperature": 123, "product_id": 123, "section_id": 123 } '
{ "data": { "id": 123, "batch_number": 123, "current_quantity": 123, "current_temperature": 123, "due_date": "2023-12-25", "initial_quantity": 123, "manufacturing_date": "2023-12-25", "manufacturing_hour": 123, "minumum_temperature": 123, "product_id": 123, "section_id": 123 } }
Product batch created successfully
Show child attributes