---
title: "Patch Card"
method: PATCH
path: "/api/workspace/analytics/cards/{card_id}"
tags: ["workspace-analytics", "workspace-analytics"]
---

# Patch Card

`PATCH /api/workspace/analytics/cards/{card_id}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/workspace/analytics/cards/{card_id}`
- Auth: none declared

Update a pinned card's title, chart, and/or SQL.

SQL (if provided) is guard-validated. updated_at is set automatically.

## Path parameters

- `card_id` integer, required

## Request body

- CardPatch
  - `title` string, nullable
  - `chart` ChartSpec: Chart configuration: type + optional x/y column names.
    - `type` 'number' | 'table' | 'bar' | 'hbar' | 'line' | 'area' | 'pie', required
    - `x` string, nullable
    - `y` string, nullable
  - `sql` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
