15

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

tlawless
  • 151
  • 1
  • 3
  • I guess I'm looking for syntax help. Is this close: https://trello.com/1/cards//idList?key=&token=&value= – tlawless Dec 18 '13 at 17:07

3 Answers3

20

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.

jonasnas
  • 3,540
  • 1
  • 23
  • 32
11

The API appears to have changed.

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

Tyler
  • 1,705
  • 2
  • 18
  • 26
0

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

lmasneri
  • 589
  • 7
  • 17