---
updatedAt: 2026-09-23T20:14:52.000Z
agentTools:
  projectIndex: https://mediroutes-api.readme.io/llms.txt
---

# Unschedule Trips

Takes trips off their routes and returns them to the day's unscheduled pool. The inverse of saveRoute.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/route/unscheduleTrips": {
      "put": {
        "tags": [
          "Route"
        ],
        "summary": "Unschedule Trips",
        "description": "Takes trips off their routes and returns them to the day's unscheduled pool. The inverse of saveRoute.",
        "operationId": "unschedule-trips",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "access token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnscheduleTripsModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UnscheduleTripsModel"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/UnscheduleTripsModel"
              }
            },
            "text/xml": {
              "schema": {
                "$ref": "#/components/schemas/UnscheduleTripsModel"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/UnscheduleTripsModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "result message"
          },
          "400": {
            "description": "Missing or unaligned data. Error message will be returned with response."
          },
          "403": {
            "description": "The api key used does not have access to this resource."
          }
        },
        "x-ai-description": "Takes one or more trips OFF their routes and returns them to that day's unscheduled pool - the inverse of route/saveRoute. Identify trips by trip_guid (not service id): a trip is a pickup AND a dropoff event, and both leave the route together. Requires the operating date, because the unscheduled pool is per day. The trips remain schedulable; nothing is cancelled or deleted.",
        "x-ai-when-to-use": "The user asks to unschedule a trip, take a trip off a route/run, remove a trip from a route, or move work back to unscheduled. NOT for cancelling a trip - that is rides/CancelTripByTripGuid and it stops the trip happening at all.",
        "x-ai-side-effects": "updates-route",
        "x-ai-returns": "A message naming how many trips were unscheduled.",
        "x-ai-required-permission": "dispatch",
        "x-ai-display": {
          "title": "Unscheduled Trips",
          "columns": []
        },
        "x-ai-inputs": [
          {
            "name": "date",
            "label": "Operating Day",
            "control": "date"
          },
          {
            "name": "trip_guids",
            "label": "Trips to Unschedule",
            "control": "multiselect",
            "options": {
              "operation": "get-ridesfordate",
              "valueField": "trip_guid",
              "labelTemplate": "{rider.last_name}, {rider.first_name} — {pickup.pickup_time} ({status})",
              "args": "date={date}"
            }
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "schemas": {
      "UnscheduleTripsModel": {
        "description": "Body for route/unscheduleTrips: the trips to take off their routes, identified by GUID, and\r\nthe operating day they belong to.\r\n            \r\nTrips are named by GUID rather than by service id deliberately. A trip is two events - a\r\npickup and a dropoff - and both must leave the route together; naming one service id invites\r\na caller to remove half a trip, which leaves work on the route that dispatch cannot see.",
        "type": "object",
        "properties": {
          "api_key": {
            "type": "string"
          },
          "date": {
            "format": "date-time",
            "description": "The operating day the trips are scheduled on. Required: the unscheduled holding run is\r\nper day, so the trips cannot be moved to it without knowing which day they belong to.",
            "type": "string"
          },
          "trip_guids": {
            "description": "The trips to unschedule, by GUID.",
            "type": "array",
            "items": {
              "format": "uuid",
              "type": "string",
              "example": "00000000-0000-0000-0000-000000000000"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```