To run a script, use the URL <baseURL>/api/script/{name}.
HTTP method |
URI |
Body |
---|---|---|
Put |
<BaseURL>/api/script/{name} |
{ "parameters": [ "Parameter value"], "base": "XObjectKey", "value": "Sample value"", "returnRawResult": true } |
Parameter |
Description |
Parameter type |
Data type |
---|---|---|---|
name |
Script name (required). |
path |
string |
parameters |
Script parameters. |
body |
object[] |
base |
Object key of base object. |
body |
string |
value |
Content of the value variable in the script. |
body |
object |
returnRawResult |
Allow to return the raw object or string as result. |
body |
boolean |
Body schema:
ScriptParameters {
parameters (object, optional),
base (string, optional): Object key of base object,
value (object, optional): Content of the Value variable in the script
}
Response schema:
ScriptResult {
result (object, optional): Return value of the script,
value (object, optional): Content of the Value variable in the script
}
Example 1:
https://<Hostname>/AppServer/api/script/QER_GetWebBaseURL
Body:
{}
Response:
{
"result": "https://<Hostname>/IdentityManager/"
}
Example 2:
https://<Hostname>/AppServer/api/script/VI_AE_BuildCentralAccount
Body:
{
"parameters": [
"f79c30fd-87bb-4958-a812-0683ddcac7c9",
"Adams",
"David"
]
}
Response:
{
"result": "DAVIDA"
}
Example 3:
https://<Hostname>/AppServer/api/script/VI_AE_BuildCentralAccount
Body:
{
"parameters": [
"f79c30fd-87bb-4958-a812-0683ddcac7c9",
"Adams",
"David"
],
"returnRawResult": true
}
Response:
{
"result": "DAVIDA"
}