tlawless
tlawless

Reputation: 151

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

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

Answers (3)

lmasneri
lmasneri

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

Tyler
Tyler

Reputation: 1891

The API appears to have changed.

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

Upvotes: 11

jonasnas
jonasnas

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

Related Questions