No Results
Create/Update System Variable

EdgeCore version: 4.3.6


PUT /public/sysvar/{varName}

Used to create a new system variable or update an existing one. You can create as many system variables as you need.

Once created/updated, the system variable(s) will be stored in the configuration file in the following format: sysVar.varName=value.

After restarting the server, the created/modified system variable will be available, that is, you will be able to select the system variable and insert it into SQL Transform queries.


Name Type Description Mandatory
string System variable name Yes
string System variable value Yes
boolean Specifies whether the variable will be encrypted prior to storage;

By default, encrypt is set to false;

To encrypt the variable prior to storage, set encrypt to true.

boolean Specifies whether to restart the server after updating the value;

By default, restart is set to false.

To restart the server after updating the value, set restart to true.


cURL example

curl --location --request PUT 'localhost:8080/public/sysvar/test' \
--header 'edgeApiKey: YWRtaW5AZGVmYXVsdHx3IDNHe2tMZTYhMkZkO3J3cipDaSZUdio5' \
--form 'value="edge"' \
--form 'encrypt="false"' \
--form 'restart="false"'

HTTP Response

Code Status Description
200 OK The request has succeeded.


Terms | Privacy