Description

Update an ABL application's configuration properties in the AppServer.SessMgr section of the conf/openedge.properties file.

HTTP Operation

PUT

URI

//host_name:port/oemanager/applications/ABL_app_name/properties

Media type

application/vnd.progress+json

Response codes

200 Success
500 Unexpected Server Error

Command-line example

curl -X PUT -u username:password -v http://localhost:16680/oemanager/applications/oepas1/properties
-d {"agentLoggingLevel":"4"} -H "Content-Type: application/vnd.progress+json"

ABL HTTP client example

using Progress.Json.ObjectModel.*.
define variable resp as OpenEdge.Net.HTTP.IHttpResponse.
define variable jsonData as JsonObject.

jsonData = new Progress.Json.ObjectModel.JsonObject().
jsonData:Add('agentLoggingLevel',  '4').
resp = OpenEdge.Net.HTTP.ClientBuilder:Build():Client
   :Execute(OpenEdge.Net.HTTP.RequestBuilder
      :Put('http://localhost:16680/oemanager/applications/oepas1/properties', jsonData)
      :ContentType('application/vnd.progress+json') 
      :UsingBasicAuthentication(new OpenEdge.Net.HTTP.Credentials('PASOE Manager Application', 'username', 'password'))
      :Request
   ).

Request body example

{"agentLoggingLevel":"4"}

Response body examples

On success:

{
   "operation":"SET BROKER PROPERTIES",
   "outcome":"SUCCESS",
   "result":"",
   "errmsg":"",
   "versionStr":"v12.1.0 ( 2019-08-07 )",
   "versionNo":1
}
On failure:
{
   "operation":"SET BROKER PROPERTIES",
   "outcome":"FAILURE",
   "result":"",
   "errmsg":"Invalid property name: \"InvalidPropName\". (PRPMsg009)",
   "versionStr":"v12.1.0 ( 2019-08-07 )",
   "versionNo":1
}