White Server White Server White Server API White Server API v2 Description of Methods Current: IsSqlProcExist IsSqlProcExist PurposeChecks whether the specified procedure has been created in the database.For certain restaurants, the request is forwarded to r_k Cloud. No agent is required to be connected.LimitationsOnly for the "RkReports" aggregatorSupported agent versionv2PluggetSystemTypeSqlRequest formatJSON{ "taskType": "IsSqlProcExist", "params": { "async": { "objectId": number, "timeout": number }, "sync": { "objectId": number, "timeout": number }, "procName": "string" }}ParameterTypeMandatoryDescriptiontaskTypestringyesTask type. For this method, the value is ExecuteSqlQueryasyncAsynchronous method call: either synchronous or asynchronoussyncSynchronous method call: either synchronous or asynchronoustimeoutintnoAgent response time in seconds. Default is 120 secondsobjectIdintyesRestaurant code in the licensing systemprocNamestringyesFull name of the stored procedureSynchronous response formatJSON{ "responseCommon":{ "taskGuid":"guid", "taskType":"IsSqlProcExist", "objectId": 0 }, "error":{ "wsError":{ "code":"string", "desc":"string" } }}ParameterTypeDescription-taskGuidguidUnique code for this task. Used when receiving a task via the queue-taskTypestring enumTask type-objectIdintRestaurant code in the licensing systemerrorError container, for more details see the article Error DescriptionAsynchronous response formatSuccessful responseJSON{ "taskResponse": { "procName": "name" "exist": true, } }, "responseCommon": { "taskGuid": "string", "taskType": "IsSqlProcExist", "objectId": 0 }}Response with errorJSON{ "responseCommon": { "taskGuid": "string", "taskType": "IsSqlProcExist", "objectId": 0 }, "error": { "wsError": { "code": "string", "desc": "string" }, "agentError": { "code": 0, "desc": "string" } }}Example answerJSON{ "taskResponse": { "procName": "name" "exist": true, } }, "responseCommon": { "taskGuid": "464ca191-8d3a-439b-ad5b-485f628275e6", "taskType": "IsSqlProcExist", "objectId": 199997075 }}ParameterParameter typeMandatoryDescription-procNamestringyesFull procedure name-existboolyesTakes two values:true — the procedure existsfalse — the procedure does not existerrorstring enumError container, for more details see the article Error Description ×