---
title: "Switch To Postop"
method: POST
path: "/api/episodes/{patient_id}/switch-to-postop"
tags: ["intraop"]
---

# Switch To Postop

`POST /api/episodes/{patient_id}/switch-to-postop`

## Request

- Base URL: `https://app.archangelhealth.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.archangelhealth.ai/api/episodes/{patient_id}/switch-to-postop`
- Auth: none declared

Surgeon-triggered transition: marks OR as ended, ensures a form row,
and returns the form id so the UI can navigate to the intra-op form.
Pass-4: surgeon role required.

## Path parameters

- `patient_id` string, required

## Request body

- SwitchToPostopRequest
  - `orStartedAt` string, nullable
  - `orEndedAt` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform.md) - [All operations](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/revisions/3514f4e119da?raw)
