routePlanningTeamDay
Requires permission visits:journey-plan:manage.
Returns the team board for one day: a row for every field rep in the caller's team, including reps with no plan, with their stops, progress, orders and changes, plus totals and the latest planning run. 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:
- GraphQL
- cURL
query RoutePlanningTeamDay {
routePlanningTeamDay {
currencyCode
date
nextRunAt
timeZone
today
changes {
id
actorName
partnerName
reassignedByName
reassignedToRepName
salesRepName
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query RoutePlanningTeamDay {\n routePlanningTeamDay {\n currencyCode\n date\n nextRunAt\n timeZone\n today\n changes {\n id\n actorName\n partnerName\n reassignedByName\n reassignedToRepName\n salesRepName\n }\n }\n}"
}
EOF
Response:
{
"data": {
"routePlanningTeamDay": {
"currencyCode": "string",
"date": "2025-01-15T00:00:00Z",
"nextRunAt": "2025-01-15T00:00:00Z",
"timeZone": "string",
"today": "2025-01-15T00:00:00Z",
"changes": [
{
"id": "id",
"actorName": "string",
"partnerName": "string",
"reassignedByName": "string",
"reassignedToRepName": "string",
"salesRepName": "string"
}
]
}
}
}
routePlanningTeamDay(
date: DateTime
): RoutePlanningTeamDay!
Arguments
routePlanningTeamDay.date ● DateTime scalar
The day to show. Omit it for the organization's today.
Type
RoutePlanningTeamDay object
The team board for one day: every field rep in the caller's scope.