---
title: "Updates the BBoxAnnotation with the given ID."
method: PATCH
path: "/bbox/{bbox_id}"
tags: ["bboxAnnotation"]
---

# Updates the BBoxAnnotation with the given ID.

`PATCH /bbox/{bbox_id}`

## Path parameters

- `bbox_id` integer, required

## Request body

- BBoxAnnotationUpdate
  - `code_id` integer, nullable — Code the BBoxAnnotation refers to
  - `x_min` integer, nullable — Absolute x_min coordinate of the BBoxAnnotation
  - `x_max` integer, nullable — Absolute x_max coordinate of the BBoxAnnotation
  - `y_min` integer, nullable — Absolute y_min coordinate of the BBoxAnnotation
  - `y_max` integer, nullable — Absolute y_max coordinate of the BBoxAnnotation

## Response `200`

Successful Response

- BBoxAnnotationRead
  - `x_min` integer, required — Absolute x_min coordinate of the BBoxAnnotation
  - `x_max` integer, required — Absolute x_max coordinate of the BBoxAnnotation
  - `y_min` integer, required — Absolute y_min coordinate of the BBoxAnnotation
  - `y_max` integer, required — Absolute y_max coordinate of the BBoxAnnotation
  - `id` integer, required — ID of the BBoxAnnotation
  - `code_id` integer, required — Code the BBoxAnnotation refers to
  - `user_id` integer, required — User that created the BBoxAnnotation
  - `sdoc_id` integer, required — SourceDocument the BBoxAnnotation refers to
  - `created` string, date-time, required — Created timestamp of the BBoxAnnotation
  - `updated` string, date-time, required — Updated timestamp of the BBoxAnnotation
  - `memo_ids` integer[], required — Memo IDs attached to the BBoxAnnotation

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-04** `28a2c2ecd85d` — 6 info
  - added the new optional request property `x_max`
  - added the new optional request property `x_min`
  - added the new optional request property `y_max`
  - added the new optional request property `y_min`
  - …2 more
- **2026-08-03** `fab14ec2229b` — 2 breaking, 4 warning
  - the request property `code_id` became required
  - request property `code_id` list-of-types was narrowed by removing types `null` from media type `application/json`
  - removed the request property `x_max`
  - removed the request property `x_min`
  - …2 more
- **2026-08-03** `99542cbdb5a9` — 6 info
  - added the new optional request property `x_max`
  - added the new optional request property `x_min`
  - added the new optional request property `y_max`
  - added the new optional request property `y_min`
  - …2 more
- **2026-07-15** `1af5a8046f20` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-08-22** `53e769440a25` — 2 warning
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - removed the optional property `detail/items/input` from the response with the `422` status

[Change history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/bbox/:bbox_id/patch.md)

---

[API](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/revisions/cadd559ceccf/schema)
