Owneat Technical Guide main Help

Create a product in a category.

PUT method/api/v1/categories/{categoryGuid}/products

Request parameters

{ "name": "example", "description": "example", "displayImageUrl": "example", "unitPrice": 99.0, "vatRate": "0" }

Responses

{ "id": "b80bb774-0288-3da1-b201-890375a60c8f", "createdAt": "1998-11-02T21:37:14Z", "updatedAt": "2011-11-10T04:49:59Z", "name": "example", "menuId": "60017790-4236-36f9-8775-f982d688ef7e", "restaurantId": "f459eb7f-8954-39fb-b7ad-424937beb163", "period": "0", "isFormulaSpecific": true, "sortingIndex": 66, "products": [ { "id": "b80bb774-0288-3da1-b201-890375a60c8f", "createdAt": "1998-11-02T21:37:14Z", "updatedAt": "2011-11-10T04:49:59Z", "name": "example", "description": "example", "displayImageUrl": "example", "unitPrice": 99.0, "sortingIndex": 66, "isAvailable": false, "categoryId": "88be62cc-bc28-31ce-9008-4c1356d22820", "restaurantId": "f459eb7f-8954-39fb-b7ad-424937beb163", "externalPaymentId": "example", "discriminator": "example", "vatRate": "0", "categoryProductData": { "categoryName": "example", "servingPeriod": "0" }, "stock": 18, "ingredients": [ { "id": "b80bb774-0288-3da1-b201-890375a60c8f", "createdAt": "1998-11-02T21:37:14Z", "updatedAt": "2011-11-10T04:49:59Z", "name": "example", "quantity": 49.0, "unit": "example" } ], "allergens": [ { "id": "b80bb774-0288-3da1-b201-890375a60c8f", "createdAt": "1998-11-02T21:37:14Z", "updatedAt": "2011-11-10T04:49:59Z", "name": "example" } ], "foodLabels": [ { "id": "b80bb774-0288-3da1-b201-890375a60c8f", "createdAt": "1998-11-02T21:37:14Z", "updatedAt": "2011-11-10T04:49:59Z", "name": "example" } ], "personalizations": [ { "id": "b80bb774-0288-3da1-b201-890375a60c8f", "createdAt": "1998-11-02T21:37:14Z", "updatedAt": "2011-11-10T04:49:59Z", "name": "example", "mode": "0", "choices": [ { "name": "example", "price": 1.0 } ], "minChoices": 32, "maxChoices": 14 } ], "isOutOfStock": false, "isStockManagementEnabled": true } ], "formulas": [ { "id": "b80bb774-0288-3da1-b201-890375a60c8f", "createdAt": "1998-11-02T21:37:14Z", "updatedAt": "2011-11-10T04:49:59Z", "name": "example", "description": "example", "displayImageUrl": "example", "unitPrice": 99.0, "sortingIndex": 66, "isAvailable": false, "categoryId": "88be62cc-bc28-31ce-9008-4c1356d22820", "restaurantId": "f459eb7f-8954-39fb-b7ad-424937beb163", "externalPaymentId": "example", "discriminator": "example", "sections": [ { "id": "b80bb774-0288-3da1-b201-890375a60c8f", "createdAt": "1998-11-02T21:37:14Z", "updatedAt": "2011-11-10T04:49:59Z", "name": "example", "containedProducts": [ { "id": "b80bb774-0288-3da1-b201-890375a60c8f", "createdAt": "1998-11-02T21:37:14Z", "updatedAt": "2011-11-10T04:49:59Z", "name": "example", "description": "example", "displayImageUrl": "example", "unitPrice": 99.0, "sortingIndex": 66, "isAvailable": false, "categoryId": "88be62cc-bc28-31ce-9008-4c1356d22820", "restaurantId": "f459eb7f-8954-39fb-b7ad-424937beb163", "externalPaymentId": "example", "discriminator": "example", "vatRate": "0", "categoryProductData": { "categoryName": ..., "servingPeriod": ... }, "stock": 18, "ingredients": [ ... ], "allergens": [ ... ], "foodLabels": [ ... ], "personalizations": [ ... ], "isOutOfStock": false, "isStockManagementEnabled": true } ] } ] } ] }
{ "type": "example", "title": "example", "status": 50, "detail": "example", "instance": "example" }
{ "type": "example", "title": "example", "status": 50, "detail": "example", "instance": "example" }
{ "type": "example", "title": "example", "status": 50, "detail": "example", "instance": "example" }
{ "type": "example", "title": "example", "status": 50, "detail": "example", "instance": "example" }
Last modified: 21 May 2024