one of my counterparts wants to fill a JSON request body and needs to work with nullable elements:
He runs into this message:
Code: Select all
{
"faultInfo": {
"$type": "ParameterConflictFault",
"hint": "Either change the calculation mode or remove the tweaks to objective from the plan tours options.",
"parameterA": "/planToursRequest/planToursOptions/@tweaksToObjective",
"parameterB": "/planToursRequest/planToursOptions/@calculationMode",
"valueA": "not null",
"valueB": "CUSTOM"
},
"message": "To use calculation mode CUSTOM the tweaks to objective may not be set."
}In the JSON this should look like in the example when it comes to "tweaksToObjective" or "customCalculationModeConfiguration".
Code: Select all
"planToursOptions": {
"tweaksToObjective": null,
"considerOrderPriorities": true,
"calculationMode": "QUALITY",
"customCalculationModeConfiguration": null
"planningHorizon": {
"$type": "StartEndInterval",
"start": "2025-10-19T22:00:00+02:00",
"end": "2025-10-20T21:59:59+02:00"
},
"restrictions": { "mixedLoadingProhibitions": [] }
}- "theProperty" : null
- not at all
Can anyone assist?
Bernd