---
title: "Update a card"
method: PATCH
path: "/api/v2/projects/{projectId}/cards/{cardId}"
tags: ["Cards"]
---

# Update a card

`PATCH /api/v2/projects/{projectId}/cards/{cardId}`

## Request

- Base URL: `https://davinci-app.com`
- URL: `https://davinci-app.com/api/v2/projects/{projectId}/cards/{cardId}`
- Auth: HTTP bearer

Updates project-global card fields and appends field-history events.
Changing `isOpen` never changes any team workflow placement.

## Headers

- `If-Match` string

## Request body

- UpdateCardRequest
  - `name` string: Sanitized by the server to a resource name of at most 255 characters.
  - `description` string, nullable
  - `resolution` string, nullable
  - `isOpen` boolean
  - `deadline` string, date-time, nullable
  - `effort` integer, nullable
  - `expectedHistoryHeadId` string, uuid, nullable: Latest committed card-history row ID; null only before a card has history.

## Response `200`

Updated card.

- CardResponse
  - `card` AgileCard, required
    - `id` string, uuid, required
    - `name` string, required
    - `description` string, nullable, required
    - `resolution` string, nullable, required: Optional Markdown resolution; closing or reopening the card does not clear it.
    - `created_by_user` string, uuid, nullable, required
    - `author_display_name` string, nullable: Display name of the user who created the card, when available.
    - `created_at` string, date-time, nullable, required
    - `closed_at` string, date-time, nullable: Timestamp of the latest transition to the closed state; null while open.
    - `updated_at` string, date-time, nullable, required
    - `deadline` string, date-time, nullable, required
    - `is_open` boolean, required
    - `project_id` string, uuid, required
    - `effort` integer, nullable, required: Unit-agnostic estimate, commonly interpreted as story points or hours.
  - `historyHeadId` string, uuid, nullable, required: Latest committed card-history row ID; null only before a card has history.
  - `historyHeadSequence` string, nullable, required: Globally monotonic card-history sequence.
  - `indexCard` CardIndexRow
    - `id` string, uuid, required
    - `project_id` string, uuid, required
    - `name` string, required
    - `resolution` string, nullable, required
    - `is_open` boolean, required
    - `deadline` string, date-time, nullable, required
    - `effort` integer, nullable, required
    - `created_by_user` string, uuid, nullable
    - `author_display_name` string, nullable
    - `created_at` string, date-time, nullable, required
    - `closed_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable, required
    - `tag_ids` string[], required
    - `user_ids` string[], required
    - `team_ids` string[], required
    - `team_status_ids` string[], required
    - `sprint_ids` string[], required
    - `team_statuses` CardPlacementStatus[], required
      - `team_id` string, uuid, required
      - `status_id` string, uuid, required
      - `status_name` string, nullable, required
      - `status_color` string, nullable, required
      - `sprint_id` string, uuid, nullable, required
    - `team_placements` CardPlacement[], required
      - `team_id` string, uuid, required
      - `status_id` string, uuid, nullable, required
      - `sprint_id` string, uuid, nullable, required
    - `history_head_id` string, uuid, nullable, required: Latest committed card-history row ID; null only before a card has history.
    - `history_head_sequence` string, nullable, required: Globally monotonic card-history sequence.
    - `search_text` string, required

## Other responses

- `400`: Malformed request parameters or body. Agile requests may return `INVALID_PAGINATION` or `INVALID_IDEMPOTENCY_KEY`.
- `401`: No credential was supplied, or the supplied credential is malformed, expired, or revoked. A credential that is present but unusable is never downgraded to an anonymous request.
- `403`: Authenticated but not authorized. Either the acting user lacks the required resource permission, the key's scope ceiling excludes it, or the endpoint rejects this credential type (`CREDENTIAL_NOT_PERMITTED`).
- `404`: The resource does not exist in the parent named by the path, or is hidden from the caller. Absence and privacy denial are deliberately indistinguishable so project, organization, and private-team existence cannot be probed.
- `409`: The supplied `If-Match`, `expectedHistoryHeadId`, or `expectedHistoryHeadIds` no longer matches committed card history. Error code is `CARD_HISTORY_CONFLICT`; `error.details` includes the expected head, current head and sequence, plus recent card activity. No part of the requested card mutation is applied.
- `429`: Request rate exceeded, either globally or for this key.
- `500`: Unexpected server error.

## Changes

- **2026-09-15** (v2) `67c8b8616dbb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/changes/api/v2/projects/:projectId/cards/:cardId/patch.md)

---

[API](https://skmtc.dev/celedon-solutions/apis/davinci-public-api.md) - [All operations](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/revisions/279218ca2e8d?raw)
