Trello API: How do I move a card to a different list

9k Views Asked by At

I have code to read boards, lists, and cards. I'd like to move cards from one list to another. I just can't seem to figure out Trello's API docs. Can someone provide a sample move card string? I see moveCardToBoard but what list would it end up in? Thanks, Tim

3

There are 3 best solutions below

0
On

You have to use this url:

PUT /1/cards/[card id or shortlink]/idList

Make sure you make a put request and you have a proper token with write permission.

0
On

If the list is in an other board you can simply do:

PUT /1/cards/{cardID}?idBoard={boardId}&idList={listID}

thank's to @Tyler 's answer

0
On

The API appears to have changed.

Now you would use: PUT /1/cards/{cardID}?idList={listID}