---
title: "PATCH run"
method: PATCH
path: "/runs/{run_id}"
tags: ["Runs"]
---

# PATCH run

`PATCH /runs/{run_id}`

## Request

- Base URL: `https://api.equipmentshare.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.equipmentshare.com/runs/{run_id}`
- Auth: HTTP bearer

Update a run's details including driver, vehicle, trailer, and status.

## Path parameters

- `run_id` integer, required

## Request body

- RunPatchRequest
  - `driver_id` integer, nullable: Driver user ID (null to unassign)
  - `end_at` string, date-time: Actual end time (ISO datetime)
  - `est_distance_miles` number, float: Estimated distance in miles
  - `run_name` string: Human-readable name for the run
  - `run_number` string: Unique run identifier (must be unique)
  - `run_planned_time` string, date-time: Planned time (ISO datetime)
  - `run_status_id` integer: Run status ID
  - `start_at` string, date-time: Actual start time (ISO datetime)
  - `trailer_id` integer, nullable: Trailer asset ID (null to unassign)
  - `vehicle_id` integer, nullable: Vehicle asset ID (null to unassign)

## Response `default`

---

[API](https://skmtc.dev/equipmentshare/apis/es-api.md) - [All operations](https://skmtc.dev/equipmentshare/apis/es-api/llms.txt) - [OpenAPI document](https://skmtc.dev/equipmentshare/apis/es-api/revisions/40651e1558ac?raw)
