Purpose

Request to edit dish parameters

Request typeAsynchronous/synchronous
Supported agent versionv1
PluggetSystemTypeRKRef

Request format


JSON

{
  "taskType": "PushDishSettings",
  "params": {
    "async": {
      "objectId": number,
       "timeout": number
    },
    "sync": {
      "objectId": number,
       "timeout": number
    },
    "identity": number,
    "extProperties": [
      {
       "name": "string",
       "value": "string"
      }
    ]
  }
}

Parameter

Type

Mandatory

Description

Default value

taskTypestringyesTask type
-async

Asynchronous method call: either synchronous or asynchronous
-sync

Synchronous method call: either synchronous or asynchronous
--objectIdintyesRestaurant code in the licensing system
--timeoutintnoResponse timeout in seconds120 sec
-identityintyesDish ID
-extProperties
yesSet of additional properties for menu item in r_keeper

--name

stringyesProperty name

--value

stringyesProperty value

Extended property of the dish

Description

PhotoForDelivery

Link to dish image, extended dish property

DescriptionForDeliveryProduct Description
DefaultModifierForDeliveryDefault modifiers. The identifiers of the modifiers are specified, with more than one possible, separated by a semicolon.
NameForDeliveryName of the dish for delivery

Synchronous Response Format


JSON

{
   "responseCommon":{
      "taskGuid":"guid",
      "taskType":"PushDishSettings",
      "objectId":number
   },
   "error":{
      "wsError":{
         "code":"string",
         "desc":"string"
      }
   }
}

Parameter

Type

Description

-taskGuidguidUnique code for this task. Used when receiving a task via the queue
-taskTypestringTask type
-objectIdintRestaurant code in the licensing system
error
Error container, for more details see the article Error Description

Asynchronous response format

Successful response


JSON

{
  "responseCommon": {
    "taskGuid": "string",
    "taskType": "PushDishSettings",
    "objectId": 0
  }
}


Response with error


JSON

{
  "responseCommon": {
    "taskGuid": "string",
    "taskType": "PushDishSettings",
    "objectId": 0
  },
  "error": {
    "wsError": {
      "code": "string",
      "desc": "string"
    },
    "agentError": {
      "code": string,
      "desc": "string"
    }
  }
}

Parameter

Parameter type

Mandatory

Description

taskGuidguidyesRequest ID
-taskTypestring
Task type
-objectIdint
Restaurant code in the licensing system
error

Error container, for more details see the article Error Description

Example request


JSON

{
  "taskType": "PushDishSettings",
  "params": {
    "async": {
      "objectId": 199990000,
      "timeout": 20
    },
    "identity": 1122,
    "extProperties": [
      {
       "name": "NameForDelivery",
       "value": "A dish"
      }
    ]
  }
}