Skip to main content

updateRoutePlanningSettings

Requires permission visits:journey-plan:manage.

Changes the organization's route planning rules. Only the rules sent change. The merged rules are checked together: for example, a plan must reach the next automatic run, and rebuilding cannot run daily. Requires permission to manage journey plans.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation UpdateRoutePlanningSettings($input: UpdateRoutePlanningSettingsInput!) {
updateRoutePlanningSettings(input: $input) {
daysOff
defaultVisitFrequencyDays
isDefault
keepManualStops
maxSameDayRadiusKm
minutesPerVisit
}
}

Variables:

{
"input": {}
}

Response:

{
"data": {
"updateRoutePlanningSettings": {
"daysOff": [
"string"
],
"defaultVisitFrequencyDays": 0,
"isDefault": true,
"keepManualStops": true,
"maxSameDayRadiusKm": 0,
"minutesPerVisit": 0
}
}
}
updateRoutePlanningSettings(
input: UpdateRoutePlanningSettingsInput!
): RoutePlanningSettings!

Arguments​

updateRoutePlanningSettings.input ● UpdateRoutePlanningSettingsInput! non-null input​

The rules to change.

Type​

RoutePlanningSettings object​

The organization's route planning rules, with the values worked out from them.