Configuration API

Create/Update Configuration

It stores the extension configuration

POST/rest/extensions/configuration/extensionId
 Query parameters application(optional, default="server"): id of the application (for the application section); "server" is reserved for server configuration
 Header
  • auth-token: token from authentication
  • Content-Type: application/json
 Header/Parameter  tenant
 Body ExtensionConfiguration. See  Configuration validation
Returns {"success" : "true"} or {"success" : "false"}
Required role MWP_ADMIN, KBA_MANAGER
Managed errors 401: insufficient privileges

Example request

curl 'https://mwp3-dev.knowledge-values.com/mwp/rest/extensions/configuration/document?application=72ac8a5d-e9b0-4eb3-9574-e6dc7fc7bff4' -H 'auth-token: 183d762a-0a10-41a0-8323-ef9a761ade60' -H 'Content-Type: application/json' -H 'tenant:default'
--data-binary $'{"name":"documentConf","version":1,"disabled":false,"applicationConfigurationItem":[{"name":"pageMargins","explanation":"Configuration items related to the page margins","subOptions":[{"name":"HtmlWidth","defaultValue":"0","explanation":"","value":"0","mandatory":true},{"name":"MarginBottom","defaultValue":"0","explanation":"","value":"0","mandatory":true},{"name":"MarginLeft","defaultValue":"0","explanation":"","value":"25","mandatory":true},{"name":"MarginRight","defaultValue":"0","explanation":"","value":"25","mandatory":true},{"name":"MarginTop","defaultValue":"0","explanation":"","value":"25","mandatory":true}]}],"serverConfigurationItem":[]}'

Example response

{  
   "success":true
}

Feedback