---
title: "Annotate Environment"
method: POST
path: "/api/asclepius/environments/{task_id}/annotate"
tags: ["asclepius-env"]
---

# Annotate Environment

`POST /api/asclepius/environments/{task_id}/annotate`

## 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/asclepius/environments/{task_id}/annotate`
- Auth: none declared

A board-certified physician submits the §7 annotation for one trajectory
(run). Gated on ``portal_version == 'env'`` (PRD §12.9).

Legacy ``'v5'`` is accepted for one release — see the queue above. It is never
written: an env annotation lands in ``env_runs``, which has no portal_version
column, so there is no way for the legacy string to be mistaken later for a
longitudinal submission.

## Path parameters

- `task_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- AnnotateRequest
  - `run_id` string, required
  - `portal_version` string, nullable
  - `annotation` object

## 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)
