Feedback

Sends a feedback.

POST/rest/consultation/feedback
 Query parameters None
 Header
  • auth-token: value of the authentication token
  • consultationId: value of the consultationId
  • Content-Type: multipart/form-data; boundary=boundaryValue
 Header/Parameter  tenant
 Body multipart composed by

  • feedback: feedback text
  • emailFrom: sender
  • cc: true to send the feedback in cc also to the current user
Returns {"result": "ok"}
Required role USER
Managed errors 401: insufficient privileges

Example request

curl 'http://localhost:8080/mwp/rest/consultation/feedback'
-H 'consultationId: 2352b3ec7f3c167370529e45e30facbd'
-H 'Content-Type: multipart/form-data; boundary=----FormBoundaryVyHAMGZSoPLXLf80'
-H 'auth-token: 9d82e174-e3bc-419f-968f-fd1388310938' -H 'tenant:default'
--data-binary $'
------FormBoundaryVyHAMGZSoPLXLf80\r\nContent-Disposition: form-data; name="feedback"\r\n\r\nTEXTr\n
------FormBoundaryVyHAMGZSoPLXLf80\r\nContent-Disposition: form-data; name="emailFrom"\r\n\r\nno-reply@knowledge-values.com\r\n
------FormBoundaryVyHAMGZSoPLXLf80\r\nContent-Disposition: form-data; name="cc"\r\n\r\ntrue\r\n
------FormBoundaryVyHAMGZSoPLXLf80--\r\n'

Example response

{  
   "result":"ok"
}

Feedback