CreateOrUpdateSqlProc
Purpose | Creates or updates the specified procedure in the database. |
---|---|
Limits | Only for the RkReports aggregator |
Supported agent version | v2 |
PluggetSystemType | Sql |
Request format
JSON
|
Parameter | Type | Mandatory | Description |
---|---|---|---|
taskType | string | yes | Task type. For this method, the value is CreateOrUpdateSqlProc |
-async | Asynchronous method call: either synchronous or asynchronous. | ||
-sync | Synchronous method call: either synchronous or asynchronous | ||
--timeout | int | no | Agent response time in seconds. Default is 120 seconds |
--objectId | int | yes | Restaurant code in the licensing system |
-procName | string | yes | Full name of the stored procedure |
-procSql | string | yes | Full text of Sql to create a procedure that will be created in the DB. The script should start with CREATE PROCEDURE procName, where procName is equal to the value of the procName parameter |
Example request
JSON
|
Synchronous response format
JSON
|
Parameter | Type | Description |
---|---|---|
-taskGuid | guid | Unique code for this task. Used when receiving a task via the queue |
-taskType | string enum | Task type |
-objectId | int | Restaurant code in the licensing system |
error | Error container, for more details see the article Error Description |
Asynchronous response format
Successful response
JSON
|
Answer with error
JSON
|
Example answer
JSON
|
Parameter | Parameter type | Mandatory | Description |
---|---|---|---|
-procName | string | yes | Full procedure name |
-success | bool | yes | Success of the procedure. Takes two values:
|
error | string enum | Error container, for more details see the article Error Description |