---
title: "Kb Update Card"
method: PUT
path: "/api/kb/cards/{card_id}"
tags: ["knowledge_base"]
---

# Kb Update Card

`PUT /api/kb/cards/{card_id}`

## Request

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

Edit an answer. A change to a published card's rule text needs its change notice (`change`): one line, the old way
and the new way. Without it the save is refused with 422 and nothing is written (KB-4).

## Path parameters

- `card_id` string, uuid, required

## Request body

- CardIn: A card as the editor sends it: the fields in the editor's order (Kind, Question, Answer, Do this, Who handles what, Why, Decided by, Who can see this). The Say and Don't say fields were retired 2026-11-25 (owner, LW1119-48; KB-10), so a request that still sends `say` or `dont_say` has them ignored, never stored. `change` is the one-line notice a rule-text change to a published card must carry (KB-4); the service refuses the save without it.
  - `department_key` string, required
  - `topic` string
  - `kind` string, required
  - `question` string, required
  - `answer` string
  - `steps` StepIn[]
    - `text` string, required
    - `page_name` string, nullable
    - `route` string, nullable
  - `people` PersonIn[]
    - `kind` string, required
    - `person` string, required
    - `principal_id` string, uuid, nullable
  - `why` string
  - `decided_by` string
  - `decided_on` string, date, nullable
  - `visible_to` string[]
  - `published` boolean
  - `change` ChangeIn, nullable: The one-line change notice a save to a PUBLISHED card's rule text must carry (KB-4): the line, the old way (struck through on screen) and the new way.
    - `one_line` string, required
    - `old_way` string
    - `new_way` string, required
  - `gap_id` string, uuid, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-12-04** `14571c4b7007`: 2 warning
  - removed the request property `dont_say`
  - removed the request property `say`
- **2026-11-17** `e100de5d1102`: 1 info
  - added the new optional request property `people/items/principal_id`
- **2026-11-16** `f51f34f6c85c`: 1 info
  - added the new optional request property `gap_id`
- **2026-11-08** `b8ab9c8b5890`: 1 info
  - added the new optional request property `change`
- **2026-11-08** `18ccc8e8f53e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/kb/cards/:card_id/put.md)

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
