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

# Update Trip

Updates a single trip.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/singletrip": {
      "patch": {
        "tags": [
          "SingleTrip"
        ],
        "summary": "Update Trip",
        "description": "Updates a single trip.",
        "operationId": "patch-singletrip",
        "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/TripRequestModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TripRequestModel"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/TripRequestModel"
              }
            },
            "text/xml": {
              "schema": {
                "$ref": "#/components/schemas/TripRequestModel"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/TripRequestModel"
              }
            }
          },
          "description": "Full trip model.",
          "required": true
        },
        "responses": {
          "200": {
            "description": "Trip Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_TripRequestModel_"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_TripRequestModel_"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_TripRequestModel_"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_TripRequestModel_"
                }
              }
            }
          },
          "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": "Updates one trip: the body is a full TripRequestModel (APIKey + the trip's current ids + changed fields). Returns the updated trip as stored. Responds 401 in the ApiResponse body when the APIKey lacks access.",
        "x-ai-when-to-use": "Trip details changed - pickup/dropoff address or time, space type, phone, charge - and you can supply the full trip model. For changing only specific named properties by GUID, prefer PATCH singletrip/withProperties.",
        "x-ai-side-effects": "updates-trip",
        "x-ai-returns": "ApiResponse containing the updated TripRequestModel as persisted (reflects any server-side normalization).",
        "x-ai-required-permission": "tripManagement",
        "x-ai-display": {
          "title": "Updated Trip",
          "key": "trip_guid",
          "root": "Data",
          "columns": [
            {
              "field": "pickup.pickup_time",
              "header": "Pickup"
            },
            {
              "field": "dropoff.appt_time",
              "header": "Appointment"
            },
            {
              "field": "pickup.complete_address",
              "header": "Pickup Address"
            },
            {
              "field": "dropoff.complete_address",
              "header": "Dropoff Address"
            },
            {
              "field": "space_type",
              "header": "Space Type"
            },
            {
              "field": "total_trip_charge",
              "header": "Charge"
            }
          ]
        },
        "x-ai-inputs": [
          {
            "name": "trip_guid",
            "label": "Trip",
            "control": "select",
            "options": {
              "operation": "get-ridesfordate",
              "valueField": "trip_guid",
              "labelTemplate": "{rider.last_name}, {rider.first_name} — {pickup.pickup_time}",
              "args": "date={date};includeUnScheduled=true"
            }
          },
          {
            "name": "trip_id",
            "label": "Trip / Authorization Number",
            "control": "text"
          },
          {
            "name": "rider_id",
            "label": "Rider Client Code",
            "control": "text"
          },
          {
            "name": "space_type",
            "label": "Space Type",
            "control": "select",
            "options": {
              "operation": "get-allspacetypes",
              "valueField": "space_type",
              "labelTemplate": "{space_type} — {space_type_description}",
              "args": "includeInactive=false"
            }
          },
          {
            "name": "funding_source_name",
            "label": "Funding Source Name",
            "control": "text"
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "schemas": {
      "Address": {
        "type": "object",
        "properties": {
          "location_name": {
            "type": "string"
          },
          "address1": {
            "type": "string"
          },
          "address2": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "zip": {
            "type": "string"
          },
          "longitude": {
            "format": "double",
            "type": "number"
          },
          "latitude": {
            "format": "double",
            "type": "number"
          }
        }
      },
      "Event": {
        "type": "object",
        "properties": {
          "event_name": {
            "type": "string"
          },
          "event_comment": {
            "type": "string"
          },
          "complete_address": {
            "type": "string"
          },
          "event_location": {
            "$ref": "#/components/schemas/Address"
          },
          "appt_time": {
            "format": "date-time",
            "type": "string"
          },
          "pickup_time": {
            "format": "date-time",
            "type": "string"
          },
          "phone_number": {
            "type": "string"
          },
          "service_id": {
            "format": "int32",
            "type": "integer"
          },
          "odometer": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "AdditionalPassenger": {
        "type": "object",
        "properties": {
          "space_type": {
            "type": "string"
          },
          "count": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "TripRequestModel": {
        "required": [
          "funding_source_name",
          "tp_api_key",
          "trip_id",
          "rider_id",
          "pickup",
          "dropoff",
          "space_type",
          "trip_type"
        ],
        "type": "object",
        "properties": {
          "funding_source_name": {
            "type": "string"
          },
          "funding_source_id": {
            "format": "int32",
            "type": "integer"
          },
          "trip_guid": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "tp_api_key": {
            "type": "string"
          },
          "trip_id": {
            "type": "string"
          },
          "rider_id": {
            "type": "string"
          },
          "pickup": {
            "$ref": "#/components/schemas/Event"
          },
          "dropoff": {
            "$ref": "#/components/schemas/Event"
          },
          "space_type": {
            "type": "string"
          },
          "billable_distance": {
            "format": "double",
            "type": "number"
          },
          "phone": {
            "type": "string"
          },
          "trip_type": {
            "format": "int32",
            "enum": [
              0,
              1,
              2,
              3
            ],
            "type": "integer"
          },
          "additional_passengers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdditionalPassenger"
            }
          },
          "caller": {
            "type": "string"
          },
          "total_trip_charge": {
            "format": "double",
            "type": "number"
          },
          "will_call_activation_time": {
            "format": "date-time",
            "type": "string"
          },
          "cancellation_reason": {
            "type": "string"
          },
          "driver_noshow_reason": {
            "type": "string"
          }
        }
      },
      "ApiResponse_TripRequestModel_": {
        "type": "object",
        "properties": {
          "Data": {
            "$ref": "#/components/schemas/TripRequestModel"
          },
          "StatusCode": {
            "format": "int32",
            "type": "integer"
          },
          "Message": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```