Configuration API

Create KBA

Creates a kba. The included (optional) kb and/or icon will fill the kba processKb and/or icon field and the kbaname in the query path will fill the kba name automatically.

POST/kbas/
 Query parameters None
 Header auth-token: token from authentication
 Header/Parameter  tenant
 Body
  • kba: multipart with kba model in json
  • kb(optional): multipart with the mplx file
  • icon(optional): multipart with the icon file
Returns {"result":"ok"}
Required role KBA_MANAGER
Managed errors 401: insufficient privileges

Example request

curl 'http://localhost:8080/mwp/rest/kbas/' -H 'auth-token: 7e3fe4c3-d18e-48d4-9c73-a2112c8902a2.local' -H 'tenant:default' -F 'kba={"id":"","name":"ApiTest","categories":[],"feedback":{},"visibility":"PUBLIC","summaryChecklistType":"NONE","xmlImportStrategy":"PREFILL","processKb":"a982ab8d-016b-470e-96d7-66f3594cef4c","extensionConfiguration":{"MatchBackendExtension":{"name":"Match Database Extension","version":1,"disabled":false,"applicationConfigurationItem":[],"serverConfigurationItem":[]}}}'

Example response

{  
   "result":"ok"
}

Feedback