Configuration API
Update KB
Updates an existing kb. See also Save KB
PUT/rest/kb/kbId
Query parameters | None |
Header | auth-token:token from authentication |
Header/Parameter | tenant |
Body | Kb: multipart with the kb file |
Returns | {"result":"ok"} |
Required role | ADMIN |
Managed errors | 401: insufficient privileges |
Example request
curl 'http://localhost:8080/mwp/rest/kb/b2b0658b-f672-491f-9b7f-81f19bda5d30'
-X PUT -H 'Content-Type: multipart/form-data; boundary=----FormBoundaryfNtgKO4It27OS9Iq'
-H 'auth-token: 456c657f-858a-43cc-9812-e83fecba509c' -H 'tenant:default'
--data-binary $'
------FormBoundaryfNtgKO4It27OS9Iq\r\nContent-Disposition: form-data; name="kb"; filename="Order Handling.mplx"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n
------FormBoundaryfNtgKO4It27OS9Iq--\r\n'
-X PUT -H 'Content-Type: multipart/form-data; boundary=----FormBoundaryfNtgKO4It27OS9Iq'
-H 'auth-token: 456c657f-858a-43cc-9812-e83fecba509c' -H 'tenant:default'
--data-binary $'
------FormBoundaryfNtgKO4It27OS9Iq\r\nContent-Disposition: form-data; name="kb"; filename="Order Handling.mplx"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n
------FormBoundaryfNtgKO4It27OS9Iq--\r\n'
Example request
curl 'http://localhost:8080/mwp/rest/kb/b2b0658b-f672-491f-9b7f-81f19bda5d30' -H "auth-token:775866eb-1608-4c8e-b349-e25212a336c3.local" -H "tenant:default" -X PUT -F "kb=@new.mplx;filename=fran" -F "comment=the comment"
Example response
{ "result":"ok" }