---
title: "Update Agentry-owned case annotations"
method: PATCH
path: "/v1/cases/{case_id}"
tags: ["Cases"]
---

# Update Agentry-owned case annotations

`PATCH /v1/cases/{case_id}`

## Request

- Base URL: `https://api.agentry.sh`
- URL: `https://api.agentry.sh/v1/cases/{case_id}`
- Auth: HTTP bearer

Updates only Agentry-owned agent_summary and pr_url fields. PostHog owns issue lifecycle; change status in PostHog and then re-read the case to refresh this projection. If-Match is required and must carry the current quoted integer revision returned as the case ETag.

## Path parameters

- `case_id` string, required

## Headers

- `If-Match` string, required
- `Idempotency-Key` string, required

## Request body

- UpdateCaseRequest
  - `agent_summary` string
  - `pr_url` string

## Response `200`

OK

- CaseDetail
  - `data_boundary` object, required
  - `id` string, required
  - `provider_issue_id` string, required
  - `project_id` string, required
  - `fingerprint` string, required
  - `status` 'active' | 'resolved' | 'suppressed', required
  - `revision` integer, required
  - `event_count` integer
  - `first_seen_at` integer
  - `last_seen_at` integer
  - `last_deploy_sha` string, nullable
  - `latest_observation` object, required
  - `observations` object[], required
  - `annotations` object, required
  - `project_context` object
  - `recent_deploys` Deploy[]
    - `id` string, required
    - `emitter` object, required
      - `trust_level` 'trusted_ci', required
      - `credential_kind` 'ci_deploy', required
      - `credential_id` string, required
    - `control` object, required
      - `automation_run_id` string, nullable, required
      - `source_commit_sha` string, nullable, required
      - `binding_authority` string, nullable, required
      - `attribution_authority` 'credential_bound_ci', required
    - `evidence` object, required
    - `inspection` object, required
    - `received_at` integer, required
  - `affected_users` object
    - `count` integer, required
    - `sample` object[], required
  - `control` object, required

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/agentry/apis/agentry-api.md) · [All operations](https://skmtc.dev/agentry/apis/agentry-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentry/apis/agentry-api/revisions/abdecddf009f?raw)
