---
title: "Remove a patient from a room's \"Next Up\" queue (returns them to the waiting list)"
method: DELETE
path: "/Flowboard/visits/{appointmentId}/next-up"
tags: ["Flowboard"]
---

# Remove a patient from a room's "Next Up" queue (returns them to the waiting list)

`DELETE /Flowboard/visits/{appointmentId}/next-up`

## Path parameters

- `appointmentId` string, required

## Response `200`

OK

- FlowboardVisitDto — A patient visit on the flowboard, derived from appointment and milestone data
  - `id` string
  - `appointmentId` string
  - `patientId` string
  - `patientName` string
  - `species` string, nullable
  - `breed` string, nullable
  - `profilePhotoUrl` string, nullable
  - `clientId` string
  - `clientName` string
  - `clientPhone` string, nullable
  - `reasonForVisit` string
  - `status` string
  - `appointmentTypeId` string, nullable
  - `appointmentTypeName` string, nullable
  - `assignedStaff` FlowboardStaffDto[]
    - `id` string
    - `name` string
    - `avatarUrl` string, nullable
    - `role` string
  - `checkInTime` string, date-time
  - `examStartTime` string, date-time, nullable
  - `treatmentStartTime` string, date-time, nullable
  - `dischargedTime` string, date-time, nullable
  - `currentRoomId` string, nullable
  - `currentRoomName` string, nullable
  - `nextUpRoomId` string, nullable
  - `nextUpQueuedAt` string, date-time, nullable
  - `alerts` FlowboardAlertDto[]
    - `type` string
    - `text` string
    - `level` string
  - `milestones` FlowboardMilestoneDto[]
    - `id` string
    - `name` string
    - `type` integer
    - `status` integer
    - `startedAt` string, date-time, nullable
    - `completedAt` string, date-time, nullable
    - `orderIndex` union
      - integer
      - string, int32
    - `estimatedDurationMinutes` union
      - integer
      - string, int32
    - `actualDurationMinutes` union
      - integer
      - string, int32
  - `progressPercent` union
    - integer
    - string, int32

## Other responses

- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1.md) · [All operations](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clinicos/pawthosx-business-api-v1/revisions/a905bde4e796/schema)
