White Server White Server White Server API White Server API v2 Description of Methods Current: PushMenuSelectors PushMenuSelectors PurposeRequest to save menu selectors: new categories and dishes distributed among themRequest typeAsynchronous/synchronousSupported agent versionv1, v2PluggetSystemTypeRKRefRequest formatJSON{ "taskType":"PushMenuSelectors", "params":{ "async":{ "objectId":"number", "timeout":"number" }, "sync":{ "objectId":"number", "timeout":"number" }, "menuSelectorCode":"number", "menuSelectorName":"string", "categories":[ { "id":"string", "name":"string", "parentId":"string" } ], "products":[ { "id":"string", "categoryId":"string" } ] }}ParameterTypeMandatoryDescriptionDefault valuetaskTypestringyesTask type-asyncAsynchronous method call: either synchronous or asynchronous-syncSynchronous method call: either synchronous or asynchronous--objectIdintyesRestaurant code in the licensing system--timeoutintnoAgent response time in seconds120 sec-menuSelectorCodeintmandatory in WSA2not used in WSA1Root selector code-menuSelectorNamestringmandatory in WSA2not used in WSA1The name of the root selector that will be created if a selector with that code does not already exist in r_keeper-categoriesarrayArray of dish categories--idstringCategory ID--namestringCategory name--parentIdstringSubcategory-productsarrayArray of dishes from the menu--idstringDish ID--categoryIdstringКатегория блюдаSynchronous Response FormatJSON{ "responseCommon":{ "taskGuid":"guid", "taskType":"PushMenuSelectors", "objectId":number }, "error":{ "wsError":{ "code":"string", "desc":"string" } }}ParameterTypeDescription-taskGuidguidUnique code for this task. Used when receiving a task via the queue-taskTypestringTask type-objectIdintRestaurant code in the licensing systemerrorError container, for more details see the article Error DescriptionAsynchronous response formatSuccessful responseJSON{ "responseCommon": { "taskGuid": "string", "taskType": "PushMenuSelectors", "objectId": 0 }}Response with errorJSON{ "responseCommon": { "taskGuid": "string", "taskType": "PushMenuSelectors", "objectId": 0 }, "error": { "wsError": { "code": "string", "desc": "string" }, "agentError": { "code": string, "desc": "string" } }}ParameterParameter typeMandatoryDescriptiontaskGuidguidyesRequest ID-taskTypestringTask type-objectIdintRestaurant code in the licensing systemerrorError container, for more details see the article Error Description ×