---
title: "Update an existing milestone"
method: PUT
path: "/JourneyMilestones/{id}"
tags: ["JourneyMilestones"]
---

# Update an existing milestone

`PUT /JourneyMilestones/{id}`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/JourneyMilestones/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/JourneyMilestones/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- UpdateJourneyMilestoneRequest: Request to update an existing journey milestone
  - `name` string, nullable
  - `type` integer
  - `status` integer
  - `completedAt` string, date-time, nullable
  - `orderIndex` union
    - integer
    - string, int32
  - `notes` string, nullable
  - `estimatedDurationMinutes` union
    - integer
    - string, int32

## Response `200`

OK

- JourneyMilestoneResponseDto: Response DTO for journey milestone
  - `id` string
  - `appointmentId` string
  - `name` string
  - `status` integer
  - `type` integer
  - `startedAt` string, date-time, nullable
  - `completedAt` string, date-time, nullable
  - `orderIndex` union
    - integer
    - string, int32
  - `notes` string, nullable
  - `sourceTemplateId` string, nullable
  - `estimatedDurationMinutes` union
    - integer
    - string, int32
  - `actualDurationMinutes` union
    - integer
    - string, int32
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
