Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

trello

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

like image 203
tlawless Avatar asked Dec 17 '13 21:12

tlawless


People also ask

Can a Trello card be in two lists?

The Mirror Power-Up for Trello does allow you to mirror a single card to several boards. Here's how. Whether you need to collaborate on a card with different team members, share information across multiple projects, or create a multi-step process for one of your cards, the Mirror Power-Up for Trello has you covered.

How do I add a card to a list in Trello?

Add cards via the "Add a card..." input at the bottom of lists. You can also add cards via the context menu at the top of lists (Pro tip: This will add the new card at the top of the list). Add cards to your board to start getting organized.

Can you link cards between boards in Trello?

For example, you could link cards together to create a Trello master board that oversees several projects, giving you an overview of all the work you and your teams are responsible for. But that's only the beginning of what Unito can help you do by syncing Trello cards across multiple projects, boards or accounts.


2 Answers

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.

like image 60
jonasnas Avatar answered Sep 23 '22 14:09

jonasnas


The API appears to have changed.

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

like image 40
Tyler Avatar answered Sep 20 '22 14:09

Tyler