---
docId: doc_a7cb90ff0b6748e8ae266a4b2975dfaa
title: Update a case
description: Change the priority, owners, data or summary of an open case.
api:
  group: casos
  auth: bearer
  operations:
    - operationId: updateCase
      method: PATCH
      path: '/v1/cases/{caseId}'
      postmanName: Update a Case
---

<script>
  import { Ways } from '$lib/components';
</script>

# Update a case

Update an open case’s priority, assignees, data or summary. Send at least one field you want to change; each change is recorded in the log.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl -X PATCH https://api.platic.ai/v1/cases/$CASE_ID \
  -H "Authorization: Bearer $PLATIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "priority": "urgent" }'
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.cases.update("case_123", { priority: "urgent" });
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `caseId` | string | Case id | ✓ |

## Request body

Send only what changes, at least one field.

```json
{
  "priority": "high",
  "assigneeIds": ["billing@acme.com", "Us2qW4eR6tY8uI0o"],
  "fields": { "email": "payments@example.com" }
}
```

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `priority` | string | - | `low`, `normal`, `high` or `urgent` |
| `assigneeIds` | array | - | Case assignees, up to 50: user id or email of a member. **Replaces the whole list** |
| `fields` | object | - | Data that changes, by `key`. They are merged with the ones it already has: a text value (up to 1,000 characters) sets or changes it, `null` or `""` deletes it |
| `summary` | string | - | The new summary, up to 4,000 characters |

## Response

`200 OK`. `result` is `updated` if something changed or `unchanged` if everything was already that way; in that case nothing is written.

```json
{
  "status": "success",
  "data": {
    "result": "updated",
    "case": {
      "id": "Es4kP9wLx2QmZ7bN1cVd",
      "workspaceId": "Wk5rT8yUi2OpAs4d",
      "number": 143,
      "folio": "INV-0143",
      "escalationId": "Et7hQ2mVx9LpRk3s",
      "escalationSnapshot": {
        "name": "Invoice error",
        "prefix": "INV",
        "color": "#2563EB",
        "keepReplying": false,
        "canClose": false,
        "waitMessage": null,
        "inactivityCloseHours": null,
        "untakenDiscardHours": 72,
        "allowManual": true
      },
      "status": "open",
      "priority": "high",
      "summary": "Asks to fix the tax ID on the invoice for order 48213.",
      "fields": {"order_number": "48213", "tax_id": "ACME010101AB1", "email": "payments@example.com"},
      "contactId": "Ct3fG5hJ7kL9mN1p",
      "conversationId": "Cv8hN2lP4qR6sT0u",
      "channelId": "Ch2wE4rT6yU8iO0p",
      "platform": "whatsapp",
      "relatedConversationIds": [],
      "postId": null,
      "threadId": null,
      "agentId": "Ag6bV8nM1qW3eR5t",
      "openedBy": {"kind": "agent", "id": "Ag6bV8nM1qW3eR5t"},
      "assigneeIds": ["Us9fG3hJ6kL2mN8b", "Us2qW4eR6tY8uI0o"],
      "acceptedBy": null,
      "acceptedAt": null,
      "lastActivityAt": "2026-11-12T15:30:00.000Z",
      "maxOpenAt": "2026-11-26T15:04:00.000Z",
      "autoCloseAt": null,
      "discardAt": "2026-11-15T15:04:00.000Z",
      "discardWarnAt": "2026-11-14T03:04:00.000Z",
      "discardWarnedAt": null,
      "closedAt": null,
      "closedBy": null,
      "closeReason": null,
      "closeNote": null,
      "createdAt": "2026-11-12T15:04:00.000Z",
      "updatedAt": "2026-11-12T15:30:00.000Z",
      "assigneeEmails": ["billing@acme.com", "support@acme.com"],
      "acceptedByEmail": null
    }
  }
}
```

| Field | Type | Description |
|-------|------|-------------|
| `result` | string | `updated` or `unchanged` |
| `case` | object | The case as it ended up, with the fields in [get a case](/api-reference/cases/get#the-case) |

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `400` | `INVALID_REQUEST` | The body is empty (`Nothing to change`), a field is not valid, an unknown one is sent or a person in `assigneeIds` is not a member of the workspace |
| `404` | `CASE_NOT_FOUND` | The case does not exist in this workspace |
| `409` | `CASE_CLOSED` | The case is already closed. A closed one is not changed |

The errors that come up on any operation are in the [introduction](/api-reference/cases#common-errors).

## Notes

- New case assignees are added to the conversation’s owners so they can see it. Removing someone from `assigneeIds` does not remove them from the owners.
- When editing, `fields` accepts any `key`, even if the escalation no longer has it, and does not recheck required fields.
- To put a person in charge, use [take a case](/api-reference/cases/take): that does change `acceptedBy`.
- The `case.updated` (priority, data or summary) and `case.assigned` (owners) webhooks arrive. If `assigneeIds` added owners to the case's conversation or to its related ones, `conversation.owners.updated` also arrives for each one, with `source` `api.case.assigned`, as when assigning from the inbox.
- From an AI agent, the tool is [`update_case`](/mcp/tools#cases).
