Insert Menu Item Groups (v2)
Endpoint: config/sim/v2/menuItems/bulkInsertMenuItemGroups
Pre-Processing Validation Criteria
-
A non-empty request file is required.
-
You do not have permissions to access this resource.
-
The HierUnitId field is required.
-
The ObjectNumber field is required.
-
Invalid ObjectNumber , it must be non-nullable and non-zero
-
The field objectNum must be between 0 and 999999999
-
name should contain a valid language.
-
Name cannot exceed 128 characters
-
The field GroupType must be between 1 and 2.
-
The field seq should be between 1 and 32767.
-
The field type must be between 0 and 4.
-
The field startObjNum must be between 0 and 9999999999.
-
The field endObjNum must be between 0 and 9999999999.
-
The field overridePricePercent must be between 0 and 1.7976931348623157E+308.
-
Duplicate objectNum
-
Duplicate seq not allowed for same exclude value
-
Invalid Language Code specified: {list of invalid codes}
-
Name cannot be null
-
Cannot insert/ update startobjNum, endObjNum and OverridePricePercent for type none(0) or all(1)
-
Start Object Number cannot be greater than end object number
-
OverridePricePercent field is not supported for Exclude
-
Invalid Language Id specified: {list of invalid ids}
Sample Request
[
{
"hierUnitId": 8407,
"groupType": 2,
"thresholdQty": 1,
"taxClassObjNum": 2,
"detail": [
{
"seq": 1,
"type": 4,
"exclude": false,
"startObjNum": 1,
"endObjNum": 10,
"overridePricePercent": null
},
{
"seq": 2,
"type": 4,
"exclude": false,
"startObjNum": 10,
"endObjNum": 20,
"overridePricePercent": null
}
],
"objectNum": 10021,
"name": {
"en-US": "MIG 10021"
}
},
{
"hierUnitId": 8407,
"groupType": 2,
"thresholdQty": 1,
"taxClassObjNum": 2,
"detail": [
{
"seq": 1,
"type": 4,
"exclude": false,
"startObjNum": 20,
"endObjNum": 30,
"overridePricePercent": null
},
{
"seq": 2,
"type": 4,
"exclude": false,
"startObjNum": 30,
"endObjNum": 40,
"overridePricePercent": null
}
],
"objectNum": 10022,
"name": {
"en-US": "MIG 10022"
}
}
]