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

# Update Trip Id

Update/Assign Trip Id By Trip Guid

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/rides": {
      "put": {
        "tags": [
          "Rides"
        ],
        "summary": "Update Trip Id",
        "description": "Update/Assign Trip Id By Trip Guid",
        "operationId": "put-rides",
        "parameters": [
          {
            "name": "trip_guid",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api_key",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "trip_id",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "access token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "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": "Assigns or replaces the EXTERNAL trip id (trip_id) of a trip identified by its internal trip_guid. Query parameters only - no body.",
        "x-ai-when-to-use": "A trip created without an external id needs one assigned, or the funding source re-issued a trip's authorization number. Not for changing any other trip field.",
        "x-ai-side-effects": "updates-trip",
        "x-ai-returns": "200 with a confirmation message; 500 when the api_key is not accessible.",
        "x-ai-required-permission": "tripManagement",
        "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"
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```