JBScript be defined to be executed for put command.
Call this with:
put [entityname](Parameter)
{body}
put has always Parameter and Body. Body only JSON supported
Note: Only JBScript supported
Additional variables that are available:
Variable |
Description |
result |
Write the text, which you want send to the client. |
code |
Return the code (the default is 200 = ok. . If this is modified, it results in an error. |
messagetext |
Define Error text, if Code <> 200 |
j |
The Body as Json Object |
valueX |
Values 1...x The values defined in the url string. Type is string or number Note: The system don't check, if count of parameter is correct |
[CompanyWorkOrderActivity/put]
// Add script to AddActivity
[/CompanyWorkOrderActivity/put]
Example: Create Activity
Body of the post command:
{
"ActivityInfo":[infoString]
}