---
title: "Update a vessel route"
method: PUT
path: "/vessels/routes/{id}"
tags: ["vessels"]
---

# Update a vessel route

`PUT /vessels/routes/{id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/vessels/routes/{id}`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Path parameters

- `id` integer, required

## Request body

- CreateVesselRoute
  - `vesselId` integer, required
  - `departurePort` string, required
  - `arrivalPort` string, required
  - `departureAt` string, date-time
  - `estimatedArrivalAt` string, date-time
  - `waypoints` object[]

## Response `200`

Route updated

- VesselRoute
  - `id` integer, required
  - `vesselId` integer, required
  - `name` string, nullable
  - `departurePort` string, required
  - `arrivalPort` string, required
  - `departureAt` string, date-time, nullable
  - `estimatedArrivalAt` string, date-time, nullable
  - `status` 'planned' | 'active' | 'completed' | 'cancelled', required
  - `waypoints` object[]

## Other responses

- `401`: Unauthorized
- `404`: Not Found

## Changes

- **2026-04-18** `518dcf68679a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/vessels/routes/:id/put.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
