---
title: "Update a stop template"
method: PATCH
path: "/api/templates/stop-templates/{id}"
tags: ["templates"]
---

# Update a stop template

`PATCH /api/templates/stop-templates/{id}`

## Request

- Base URL: `https://api.vepathos.com`
- URL: `https://api.vepathos.com/api/templates/stop-templates/{id}`
- Auth: HTTP bearer

## Request body

- StopTemplatePatch: Same fields as StopTemplateInput, all optional. Only the fields you send are updated.
  - `name` string
  - `description` string
  - `stop` StopTemplateStop: Stored as sent. Only `lat` and `lng` are validated; extra fields are kept.
    - `lat` number, required
    - `lng` number, required
    - `address` string
    - `milestoneId` string
    - `twStartMinutes` integer, nullable: Minutes since UTC midnight.
    - `twEndMinutes` integer, nullable: Minutes since UTC midnight.
    - `packages` object[]

## Response `200`

Updated stop template.

- StopTemplate
  - `id` string, required
  - `name` string, required
  - `description` string
  - `stop` StopTemplateStop, required: Stored as sent. Only `lat` and `lng` are validated; extra fields are kept.
    - `lat` number, required
    - `lng` number, required
    - `address` string
    - `milestoneId` string
    - `twStartMinutes` integer, nullable: Minutes since UTC midnight.
    - `twEndMinutes` integer, nullable: Minutes since UTC midnight.
    - `packages` object[]
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400`: Invalid request body
- `401`: Not signed in
- `404`: Not found, or not owned by the caller

---

[API](https://skmtc.dev/vepathos/apis/vepathos-route-optimization-api.md) · [All operations](https://skmtc.dev/vepathos/apis/vepathos-route-optimization-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vepathos/apis/vepathos-route-optimization-api/revisions/00caa1ca62d9?raw)
