Reputation: 151
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
Upvotes: 15
Views: 9442
Reputation: 771
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
Upvotes: 0
Reputation: 1891
The API appears to have changed.
Now you would use: PUT /1/cards/{cardID}?idList={listID}
Upvotes: 11
Reputation: 3580
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
.
Upvotes: 20