Skip to content

update_card

Update a card. Changes any of a card’s fields in one write — all of it applies or none of it does. Move it between lanes with column_id (a column of the board it ends up on). Move it to another board with to_board_id: it is renumbered there, so use the number and url in the result from then on; with no column_id it lands in that board’s Backlog. In Todo and Doing a card needs a due_on, so set one in the same write that moves it there. Steps: an entry with no id adds one; with an id it edits that step, or removes it when remove is true. Removing a step needs the delete scope; adding and editing need only write.

Needs scope Read-only Destructive Idempotent
write No Yes No
Argument Type Required Description
board_id integer Yes The board the card is on
number integer Yes The card’s number on that board (not its id)
title string No
due_on string No YYYY-MM-DD
description string No Rich text; replaces the whole description
pinned boolean No Pinned to the top of its lane
column_id integer No The lane to move the card to
to_board_id integer No The board to move the card to
steps object[] No
  • PUT /boards/{board_id}/cards/{number}.json

The result is the API’s JSON answer as text, or Done. for an answer with no body. A refusal is a tool error carrying the error envelope and the HTTP status.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"board_id": {
"type": "integer",
"description": "The board the card is on"
},
"number": {
"type": "integer",
"description": "The card's number on that board (not its id)"
},
"title": {
"type": "string"
},
"due_on": {
"type": "string",
"format": "date",
"description": "YYYY-MM-DD"
},
"description": {
"type": "string",
"description": "Rich text; replaces the whole description"
},
"pinned": {
"type": "boolean",
"description": "Pinned to the top of its lane"
},
"column_id": {
"type": "integer",
"description": "The lane to move the card to"
},
"to_board_id": {
"type": "integer",
"description": "The board to move the card to"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"content": {
"type": "string"
},
"completed": {
"type": "boolean"
},
"remove": {
"type": "boolean",
"description": "Delete this step; needs the delete scope"
}
}
}
}
},
"required": [
"board_id",
"number"
],
"additionalProperties": false,
"type": "object"
}