Consultation API
Restart
Kills an existing consultation and start it again with a new consultationId.
GET/rest/consultation/restart/valueOfTheConsultationId
| Query parameters | None |
| Header | auth-token: value of the authentication token |
| Header/Parameter | tenant |
| Body | None |
| Returns | ConsultationResponse |
| Required role | USER |
| Managed errors |
|
Example request
curl 'https://mwp3-dev.knowledge-values.com/mwp/rest/consultation/restart/9e419ea0bb949c9817fc41195c7a5a36' -H 'auth-token: 6bc7e5ba-71bf-4623-8788-a7f7ef44a74e' -H 'tenant:default'
Example response
{
"consultationId": "9e419ea0bb949c9817fc41195c7a5a36",
"variables": [
{
"id": "Order_Handling-Client_name-1",
"name": "Client name",
"instanceIndex": 1,
"instanceBaseName": null,
"type": "qualitativeLength",
"question": "What is the name of the client?",
"explanation": "",
"domain": {
"alternatives": [],
"constraints": {
"numbersConstraints": null,
"stringsConstraints": {
"maxLength": 100,
"minLength": 0
},
"defaultValue": ""
},
"exclusiveValue": null,
"defaultValue": ""
},
"display": false,
"frameName": "Client Information",
"maskedValue": null,
"solvable": false,
"metricSystem": "EU",
"storedValues": null,
"decimalSeparator": null,
"thousandsSeparator": null
}
],
"questionType": "question",
"tableName": "Order Handling",
"displayVariables": [],
"downloads": null,
"answeredQuestions": null,
"visualizationConfiguration": [],
"summaryChecklist": {
"type": "NONE",
"content": null
},
"responseExtensions": null,
"feedback": null,
"userType": "NORMAL_USER"
}