skip to main content
Corticon Server: Integration & Deployment Guide : Corticon API reference : REST Management API : Summary of REST methods for management of Decision Services : API Set Decision Service Properties
 

Try Corticon Now
API Set Decision Service Properties
<base>/decisionService/setProperties
HTTP POST
Attempts to modify the properties of a specified Decision Service. The request headers must have information about which Decision Service's properties to get. The Decision Service name, major version number, and minor version number are all required. The headers are set as follows:

Name: <The name of the Decision Service
whose properties you want to set, REQUIRED>
majorVersion: <The major version number of the Decision Service
whose properties you want to set, REQUIRED>
minorVersion: <The minor version number of the Decision Service
whose properties you want to set, REQUIRED>
The object must contain a key/value format system of the form key: property name value: value intended to be set for this property, as shown:
{
<Property name> : <Property's intended value>,
...
}
The response contains a JSON object similar to the one in API Get Decision Service Properties. There is a list of key/value pairs representing the properties that were attempted to be set, in the form key: property name value: object representing success/failure of setting the property value, as shown:
{
"errors" : [ <A list of the property field names that have errors>
... ]
<Property name> : {
"status" : "OK", <The status field's existence signifies that the requested
property change succeeded; if there was an error, this field
is not included in the object>
"error" : {...} <This field will only exist if the property did not get
successfully set for any reason; this will be a standard
error object>
},
...
}
For example, if the following values were provided in a request:
{
"restrictInfoRuleMessages" : true,
"deploymentTimestamp" : "02/01/15 6:02:55 PM"
}
The following excerpted response would be returned with an HTTP status code of INTERNAL SERVER ERROR(500):
{
"errors" ; [ "deploymentTimestamp" ],
"restrictInfoRuleMessages":{
"status":"OK",
},
"deploymentTimestamp":{
"error":{
"message":"Property name: \"deploymentTimestamp\" is ReadOnly",
"type":
"com.corticon.eclipse.rest.delegates.CcRestDelegatePropertyRequestErrorException",
"stackTrace":[
"com.corticon.eclipse.rest.delegates.RestDelegate
.setDecisionServicePropertyValue(RestDelegate.java:1436)",
"com.corticon.eclipse.rest.delegates.RestDelegate
.SetDecisionServiceProperties(RestDelegate.java:943)",
"com.corticon.eclipse.rest.CorticonSetDecisionServiceProperties
.postCorticonSetDecisionServiceProperties(CorticonSetDecisionServiceProperties.java:39)",
"sun.reflect.NativeMethodAccessorImpl
.invoke0(Native Method)",
"sun.reflect.NativeMethodAccessorImpl
.invoke(NativeMethodAccessorImpl.java:57)",
"sun.reflect.DelegatingMethodAccessorImpl
.invoke(DelegatingMethodAccessorImpl.java:43)",
"java.lang.reflect.Method
.invoke(Method.java:601)", ...
...
"java.util.concurrent.ThreadPoolExecutor$Worker.
run(ThreadPoolExecutor.java:603)",
"java.lang.Thread.run(Thread.java:722)"
]
}
}
}
Success status codes:
*200 OK
Error status codes:
*400 Bad Request
*500 Internal Server Error