Overview
This recipe shows you how to update an existing card by passing its_id in the request body. The same endpoint is used for both creating and updating cards.
What you need
- Your API key and board ID from Card Sources > API
- The
_idof the card you want to update - Update Mode set to Update if exists in Card Sources
Step 1: Confirm your Update Mode setting
Updating only works if the board’s Update Mode is set to Update if exists. If it is set to Always Create New, passing an_id will have no effect and a new card will be created instead.
Check or change this in Card Sources > API on the board.
Step 2: Post the update
Pass the_id of the card alongside only the fields you want to change. Fields you omit are left as-is.
Step 3: Confirm the update
Fetch the card to verify the fields were updated as expected.Things to watch out for
- If the
_iddoes not match any existing card and Update Mode is set to Update if exists, a new card will be created. - Only the fields you include in the payload are changed. All other fields on the card remain untouched.
Next steps
- React to a card update to trigger updates automatically from a webhook
- Get data from a board to find card IDs you want to update
