Consultation API

Create Bookmark

it creates a bookmark for the current consultation

GET/rest/consultation/bookmark
 Query parameters None
 Header
  • auth-token: value of the authentication token, it can be optionally specified in place of the query param
  • consultationId: value of the consultationId
 Header/Parameter  tenant
 Body None
Returns Bookmark Download Model
Required role USER
Managed errors
  • 404: kb not found
  • 401: insufficient privileges

Example request

curl 'http://localhost:8080/mwp/rest/consultation/bookmark' -H 'consultationId: 484500412b9a4bc59e70fdf31df7d92e' -H 'auth-token: 5f4a627d-d749-49ee-9cd7-616968462ffc' -H 'tenant:default'

Example response

{  
   "name":"matchBookmark.html",
   "url":"/mwp/rest/download/ec1444a5-0f1c-4947-b7a0-0c48af636268?auth-token=5f4a627d-d749-49ee-9cd7-616968462ffc&consultationId=484500412b9a4bc59e70fdf31df7d92e",
   "mimeType":"text/html",
   "message":"matchBookmark.html",
   "directDownload":false
}