Skip to content

Update a card

PUT
/boards/{board_id}/cards/{number}.json
curl --request PUT \
--url https://your-board.mudda.today/boards/1/cards/7.json \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "title": "Ship it", "column_id": 4, "pinned": true, "steps_attributes": [ { "id": 12, "completed": true }, { "content": "A new step" } ] }'

Any writable field, plus column_id to change lane and board_id to move boards, applied in one write or refused with nothing written. A card in Todo or Doing needs a due_on. Moved to another board, the card is renumbered there: the Location header and the body’s url carry its new address. steps_attributes adds (no id), edits (id plus fields), or removes (id plus "_destroy": true, which needs delete) steps. PATCH is accepted too.

Scope: write, plus delete when steps_attributes removes a step.

board_id
required
integer

The board’s id.

Example

1
number
required
integer

The card’s number on its board (not its id).

Example

7
Media typeapplication/json
object
title
string
description
string
due_on
string | null format: date
pinned
boolean
created_at
string format: date-time
last_active_at
string format: date-time
steps_attributes
Array<object>

No id adds a step; an id edits it, or removes it with _destroy (needs delete).

object
id
integer
content
string
completed
boolean
_destroy
boolean
column_id

A lane on the board the card ends on.

integer
board_id

Moves the card to that board, renumbering it.

integer

Example

{
"title": "Ship it",
"column_id": 4,
"pinned": true,
"steps_attributes": [
{
"id": 12,
"completed": true
},
{
"content": "A new step"
}
]
}

The card. Location is sent only when it moved boards.

Media typeapplication/json
object
id
required
integer
number
required

The card’s number on its board.

integer
title
required
string
description
required

Plain text.

string
description_html
required

The rich text as Action Text renders it, wrapped in <div class="action-text-content">…</div> (empty when there is no description). To write it back, send the wrapper’s inner HTML as description (or your own HTML); sending the wrapper itself nests it again.

string
has_attachments
required
boolean
closed
required

In Done.

boolean
backlogged
required

In Backlog.

boolean
pinned
required
boolean
overdue
required
boolean
color
required

Its lane’s colour.

object
name
required
string
Allowed values: Blue Periwinkle Indigo Azure Emerald Amber Violet Purple Pink
value
required
string
due_on
required
string | null format: date
last_active_at
required
string format: date-time
created_at
required
string format: date-time
url
required
string format: uri
board
required
object
id
required
integer
name
required
string
created_at
required
string format: date-time
url
required
string format: uri
creator
required
object
id
required
integer
name
required
string
email_address
required
string format: email
active
required
boolean
created_at
required
string format: date-time
url
required
string format: uri
avatar_url
required
string format: uri
column
object
id
required
integer
name
required
string
Allowed values: Backlog Todo Doing Done
color
required

A colour by its English name and the CSS value the page paints it with.

object
name
required
string
Allowed values: Blue Periwinkle Indigo Azure Emerald Amber Violet Purple Pink
value
required
string
position
required

1 to 4: Backlog, Todo, Doing, Done.

integer
created_at
required
string format: date-time
cards_url
required

The board’s card index narrowed to this lane.

string format: uri
creator
required
object
id
required
integer
name
required
string
email_address
required
string format: email
active
required
boolean
created_at
required
string format: date-time
url
required
string format: uri
avatar_url
required
string format: uri
notes_url
required
string format: uri
steps
required
Array<object>
object
id
required
integer
content
required
string
completed
required
boolean
notes
required

The 20 most recent.

Array<object>
object
id
required
integer
created_at
required
string format: date-time
updated_at
required
string format: date-time
body
required
object
plain_text
string
html

Wrapped in <div class="action-text-content">, as description_html is.

string
creator
required
object
id
required
integer
name
required
string
email_address
required
string format: email
active
required
boolean
created_at
required
string format: date-time
url
required
string format: uri
avatar_url
required
string format: uri
card
required
object
id

The card’s database id.

integer
url
string format: uri
url
required
string format: uri
notes_truncated
required
boolean

Examples

Exampledefault
{
"id": 57,
"number": 7,
"title": "Ship it",
"description": "Cut the release and announce it.",
"description_html": "<div class=\"action-text-content\">\n <div>Cut the release and announce it.</div>\n</div>\n",
"has_attachments": false,
"closed": false,
"backlogged": false,
"pinned": true,
"overdue": false,
"color": {
"name": "Amber",
"value": "var(--color-card-5)"
},
"due_on": "2026-12-01",
"last_active_at": "2026-10-16T14:02:11Z",
"created_at": "2026-10-01T08:30:00Z",
"url": "https://your-board.mudda.today/boards/1/cards/7",
"board": {
"id": 1,
"name": "Writebook",
"created_at": "2026-01-04T09:15:00Z",
"url": "https://your-board.mudda.today/boards/1",
"creator": {
"id": 1,
"name": "Ayesha Khan",
"email_address": "ayesha@example.com",
"active": true,
"created_at": "2026-01-04T09:12:00Z",
"url": "https://your-board.mudda.today/users/1",
"avatar_url": "https://your-board.mudda.today/users/1/avatar"
}
},
"column": {
"id": 3,
"name": "Doing",
"color": {
"name": "Amber",
"value": "var(--color-card-5)"
},
"position": 3,
"created_at": "2026-01-04T09:15:00Z",
"cards_url": "https://your-board.mudda.today/boards/1/cards?column_ids%5B%5D=3"
},
"creator": {
"id": 1,
"name": "Ayesha Khan",
"email_address": "ayesha@example.com",
"active": true,
"created_at": "2026-01-04T09:12:00Z",
"url": "https://your-board.mudda.today/users/1",
"avatar_url": "https://your-board.mudda.today/users/1/avatar"
},
"notes_url": "https://your-board.mudda.today/boards/1/cards/7/notes",
"steps": [
{
"id": 12,
"content": "First",
"completed": true
},
{
"id": 13,
"content": "Second",
"completed": false
}
],
"notes": [
{
"id": 31,
"created_at": "2026-10-16T14:02:11Z",
"updated_at": "2026-10-16T14:02:11Z",
"body": {
"plain_text": "Deployed to staging.",
"html": "<div class=\"action-text-content\">\n <div>Deployed to staging.</div>\n</div>\n"
},
"creator": {
"id": 1,
"name": "Ayesha Khan",
"email_address": "ayesha@example.com",
"active": true,
"created_at": "2026-01-04T09:12:00Z",
"url": "https://your-board.mudda.today/users/1",
"avatar_url": "https://your-board.mudda.today/users/1/avatar"
},
"card": {
"id": 57,
"url": "https://your-board.mudda.today/boards/1/cards/7"
},
"url": "https://your-board.mudda.today/boards/1/cards/7/notes/31"
}
],
"notes_truncated": false
}
Location
string format: uri

The record’s URL.

The body is missing the object a write needs, or isn’t valid JSON.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"card": [
"is missing"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

No credential, or a revoked or expired token.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"base": [
"Unauthorized"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

The user is deactivated, the record isn’t yours to change, or the token lacks the scope.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"base": [
"This token is not granted the write scope"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

No such record or route.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"base": [
"Not found"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

A concurrent change took the same unique value; retry.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"base": [
"Conflict; retry"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

Validation failed, a query parameter isn’t recognised, or a filter value is outside its list.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"due_on": [
"can't be blank in Todo or Doing"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

The token has spent its 600 requests this minute.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"base": [
"Rate limit exceeded: 600 requests a minute per token"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}
Retry-After
integer
Allowed value: 60

Seconds to wait before retrying.