Skip to main content
Version: 1.3.2

Global Variable API

VariableRestfulApi class

add global variables

Interface address:/api/rest_j/v1/variable/saveGlobalVariable

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Add global variables

Request example:

{
globalVariables: [{
keyID: ,
key: "",
valueID: ,
value: ""
}]
}

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
globalVariablesAdded parameter data one-to-many key:globalVariables,value:ListMaptrueMap
keyParameter name, belonging to globalVariablesStringtrueString
valuevariable value, and key belong to the key-value pair that is contained by globalVariablesListtrueList

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

{
"method": "/api/variable/saveGlobalVariable",
"status": 0,
"message": "OK",
"data": {}
}