No Results
Set Secured Variable by Domain & Name

EdgeCore version: 4.3.0

Method

PUT /public/domains/{domainName}/secvars/{secVarName}

Used to set a particular secured variable for a specific domain.

Note that the secured variable in question first needs to be configured on the Provision Defaults page.

Parameters

Name Type Description Mandatory
domainName
string Domain for which you want to set the secured variable Yes
secVarName
string Name of the secured variable you want to set Yes
inherited
boolean If set to true, the secured variable value is reset to inherit the default value No
value
string If this is not set, the secured variable value is reset to inherit the default value No
isExpression
boolean If set to true, the variable string will be evaluated as an expression (e.g. info.login.username) No

 

cURL example

curl --location --request PUT 'http://localhost:8080/public/domains/edge/secvars/testsec' \
--header 'edgeApiKey: YWRtaW5AZGVmYXVsdHx3IDNHe2tMZTYhMkZkO3J3cipDaSZUdio5' \
--form 'inherited="false"' \
--form 'value="Hello World!"' \
--form 'isExpression="false"'

Example Response

{
    "domainId": "s3pvsu-k636f3lq69pj",
    "domainName": "edge",
    "doClass": "DomainSecVarValueDO",
    "id": "s3pvsu-k636f3lq8fv6",
    "varName": "testsec",
    "value": {
        "doClass": "SpStringValueDO",
        "isParameter": false,
        "primitiveValue": "Hello World!"
    },
    "inheritedValue": null,
    "inheritedValueScope": null
}

 

HTTP Response

Code Status Description
200 OK The request has succeeded.
404 Not Found The domain could not be found.

Or

The secured variable could not be found.


Terms | Privacy