Insert Menu Item Definitions (v2)
Endpoint: config/sim/v2/menuItems/bulkInsertMenuItemDefinitions
Pre-Processing Validation Criteria
-
A non-empty request file is required.
-
You do not have permissions to access this resource.
-
The field SequenceNum must be between 1 and 64.
-
FirstName should contain a valid language.
-
SecondName should contain a valid language.
-
ThirdName should contain a valid language.
-
Name cannot exceed 128 characters. This error message is returned if the length of either firstName, secondName, thirdName, or longDescriptor exceeds 128 characters.
-
Name should contain a valid language. This error message is returned if the length of either firstName, secondName, thirdName, or longDescriptor contains invalid language.
-
Option bit must contain only 0's and 1's. This error message is returned for mainLevel, subLevel and defaultCondiments.options
-
The field MainLvl must be a string with a minimum length of 8 and a maximum length of 8.
-
The field SubLvl must be a string with a minimum length of 8 and a maximum length of 8.
-
The field SLUSortPriority must be between 0 and 99.
-
The field NLUNum must be between 0 and 999999999999.
-
The field TareWeight must be between 0 and 9999999.
-
The field Surcharge must be between 0 and 999999999999.
-
The field Quantity must be between 0 and 9999.
-
Invalid time. The error message is for invalid prepTime.
-
The field GuestCount must be between 0 and 9999.
-
The field ConsumerDescription must be a string with a maximum length of 128.
-
The field SortGroup must be between 0 and 10.
-
The field CondimentOptions must be a string with a minimum length of 8 and a maximum length of 8.
-
The field ProductionItemCount must be between 0 and 999.99.
-
Required property 'menuItemNutrientSetId' not found in JSON.
-
Duplicate defSequenceNum for same menuItemMasterId
-
Duplicate menuLevelObjNum within customMenuLevels
-
Duplicate componentObjNum within components
-
Duplicate columnName within dataExtensions
-
Duplicate productionItemObjNum within productionItems
-
Duplicate tagName within tags
-
Duplicate imageIndex within images
-
Invalid Language Id specified: {list of invalid ids}
Sample Request
[
{
"hierUnitId": 662,
"menuItemMasterId": 147812,
"defSequenceNum": 1,
"firstName": {
"en-US": "FirstName"
},
"secondName": {
"en-US": "SecondName"
},
"thirdName": {
"en-US": "Third Name"
},
"longDescriptor": {
"en-US": "Long Descriptor"
},
"menuItemClassObjNum": 1,
"overridePrintClassObjNum": 999,
"overrideAllergenClassObjNum": 1,
"mainLevel": "11111111",
"subLevel": "11111111",
"slu1ObjNum": 1,
"slu2ObjNum": 2,
"slu3ObjNum": 3,
"slu4ObjNum": 4,
"slu5ObjNum": 5,
"slu6ObjNum": 6,
"slu7ObjNum": 7,
"slu8ObjNum": 8,
"sluSortPriority": 10,
"nluGroupObjNum": 1,
"nluNum": 2,
"tareWeight": 20.0,
"surcharge": 30.0,
"quantity": 121,
"kdsPrepTime": 10.3,
"prefixLevelOverride": 1,
"guestCount": 1,
"consumerAdvisoryDesc": "Consumer Description",
"consumerItemName": {
"en-US": "consumerItemName"
},
"consumerItemDescription": {
"en-US": "consumerItemDescription"
},
"customMenuLevels": [
{
"menuLevelObjNum": 1,
"customLevel": "00000000"
},
{
"menuLevelObjNum": 2,
"customLevel": "00000000"
},
{
"menuLevelObjNum": 101010,
"customLevel": "00000000"
}
],
"images": [
{
"imageIndex": 1,
"url": "https://oracleObjectStore.com/images/coffee822815.jpg",
"altText": "pizza",
"description": "pizza description",
"isCloudImage": true,
"size": "10"
}
],
"defaultCondiments": [
{
"condimentSetObjNum": 1,
"sortGroup": 10,
"options": "00000000"
}
],
"productionItems": [
{
"productionItemObjNum": 1,
"productionItemCount": 10
}
],
"components": [
{
"componentObjNum": 1
}
],
"tags": [
{
"tagName": "tag"
}
],
"nutrients": [
{
"menuItemNutrientSetId": 1,
"nutrientSetObjNum": 1
},
{
"menuItemNutrientSetId": 1,
"nutrientSetObjNum": 2
}
],
"dataExtensions": [
{
"columnName": "Fat",
"value": 120
}
]
},
{
"hierUnitId": 662,
"menuItemMasterId": 147812,
"defSequenceNum": 2,
"firstName": {
"en-US": "FirstName"
},
"secondName": {
"en-US": "SecondName"
},
"thirdName": {
"en-US": "Third Name"
},
"longDescriptor": {
"en-US": "Long Descriptor"
},
"menuItemClassObjNum": 1,
"overridePrintClassObjNum": 999,
"overrideAllergenClassObjNum": 1,
"mainLevel": "11111111",
"subLevel": "11111111",
"slu1ObjNum": 1,
"slu2ObjNum": 2,
"slu3ObjNum": 3,
"slu4ObjNum": 4,
"slu5ObjNum": 5,
"slu6ObjNum": 6,
"slu7ObjNum": 7,
"slu8ObjNum": 8,
"sluSortPriority": 10,
"nluGroupObjNum": 1,
"nluNum": 2,
"tareWeight": 20.0,
"surcharge": 30.0,
"quantity": 121,
"kdsPrepTime": 10.3,
"prefixLevelOverride": 1,
"guestCount": 1,
"consumerAdvisoryDesc": "Consumer Description",
"consumerItemName": {
"en-US": "consumerItemName"
},
"consumerItemDescription": {
"en-US": "consumerItemDescription"
},
"customMenuLevels": [
{
"menuLevelObjNum": 1,
"customLevel": "00000000"
},
{
"menuLevelObjNum": 2,
"customLevel": "00000000"
},
{
"menuLevelObjNum": 101010,
"customLevel": "00000000"
}
],
"images": [
{
"imageIndex": 1,
"url": "https://oracleObjectStore.com/images/coffee822815.jpg",
"altText": "pizza",
"description": "pizza description",
"isCloudImage": true,
"size": "10"
}
],
"defaultCondiments": [
{
"condimentSetObjNum": 1,
"sortGroup": 10,
"options": "00000000"
}
],
"productionItems": [
{
"productionItemObjNum": 1,
"productionItemCount": 10
},
{
"productionItemObjNum": 2,
"productionItemCount": 10
}
],
"components": [
{
"componentObjNum": 1
}
],
"tags": [
{
"tagName": "tag"
}
],
"nutrients": [
{
"menuItemNutrientSetId": 1,
"nutrientSetObjNum": 1
}
],
"dataExtensions": [
{
"columnName": "Fat",
"value": 120
}
]
}
]