Update Menu Item Masters (v2)

Endpoint: config/sim/v2/menuItems/bulkUpdateMenuItemMasters

Pre-Processing Validation Criteria

Validation messages:
  • A non-empty request file is required.

  • You do not have permissions to access this resource.

  • The field objectNum must be between 1 and 999999999

  • Option bit must contain only 0's and 1's

  • miMasterOptions must contain only 0's and 1's

  • The field miMasterOptions must be a string of length 8.

  • miMasterOptions cannot be null

  • Name cannot exceed 128 characters

  • The field externalReference1 must be a string with a maximum length of 32.

  • The field externalReference2 must be a string with a maximum length of 32.

  • name should contain a valid language

  • objectNum is required field.

  • hierUnitId is required field.

  • Invalid Language Id specified: {list of invalid ids}

  • Duplicate objectNum / Duplicate objectNum and hierUnitId

  • Duplicate columnName within dataExtensions

  • Duplicate dietaryLabelName within dietaryLabels

Sample Request

[
    {
        "hierUnitId": 662,
        "objectNum": 1000,
        "name": {
            "en-US": "Menu Item Master 1000"
        },
        "familyGroupObjectNum": 1,
        "majorGroupObjectNum": 1,
        "masterGroupObjectNum": 1,
        "reportGroupObjectNum": 1,
        "miMasterOptions": "00000000",
        "externalReference1": "ext-reference-1",
        "externalReference2": "ext-reference-2",
        "dietaryLabels": [
            {
                "dietaryLabelName": "Dietary"
            }
        ],
        "dataExtensions": [
            {
                "columnName": "Calories",
                "value": "120"
            },
            {
                "columnName": "Fat",
                "value": "120"
            }
        ]
    },
   {
        "hierUnitId": 662,
        "objectNum": 1001,
        "name": {
            "en-US": "Menu Item Master 1001"
        },
        "familyGroupObjectNum": 1,
        "majorGroupObjectNum": 1,
        "masterGroupObjectNum": 1,
        "reportGroupObjectNum": 1,
        "miMasterOptions": "00000000",
        "externalReference1": "ext-ref-1",
        "dietaryLabels": [
            {
                "dietaryLabelName": "Dietary"
            }
        ],
        "dataExtensions": [
            {
                "columnName": "Calories",
                "value": "120"
            },
            {
                "columnName": "Fat",
                "value": "120"
            }
        ]
    }
]