---
title: "Edit a trip"
method: PUT
path: "/v2/organisations/{organisation_id}/trips/{trip_id}"
tags: ["Gateway GRPC"]
---

# Edit a trip

`PUT /v2/organisations/{organisation_id}/trips/{trip_id}`

## Request

- Base URL: `https://api.cautio.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cautio.in/v2/organisations/{organisation_id}/trips/{trip_id}`
- Auth: HTTP bearer

## Path parameters

- `organisation_id` string, required
- `trip_id` string, required

## Request body

- EditTripRequestDto
  - `route_id` string, required: Route ID
  - `trip_name` string, required: Trip name
  - `vehicles` VehicleDetailsDto[], required: Vehicles with their individual schedules
    - `vehicle_id` string, required: Vehicle ID
    - `frequency` FrequencyDto
      - `day` number[], required: Days of week for the trip
      - `start_time` string, required: Trip start time
      - `end_time` string, required: Trip end time
      - `end_day_offset` number: Number of calendar days after the start day when the trip ends
    - `frequencies` FrequencyDto[]: Vehicle trip frequencies
      - `day` number[], required: Days of week for the trip
      - `start_time` string, required: Trip start time
      - `end_time` string, required: Trip end time
      - `end_day_offset` number: Number of calendar days after the start day when the trip ends

## Response `200`

Trip edited successfully

---

[API](https://skmtc.dev/cautio/apis/cautio-api.md) - [All operations](https://skmtc.dev/cautio/apis/cautio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cautio/apis/cautio-api/revisions/214e6d1d2b6c?raw)
