Trello.moveListToBoard()

Move the cards from one list, to another list on a specified board

Usage

Hover over inputs/exits for more info.

var Trello = require('machinepack-trello');


// Move the cards from one list, to another list on a specified board

Trello.moveListToBoard({

listIdToMove: '56cacebe81d9018832646c98 (24 character id)',

boardIdToMoveTo: '56cace9be1e1f1cb119a7cb8 (24 character id)',

listIdToMoveTo: '56cb3aa6327c4611996cec8c (24 character id)',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Sucessful, but no cards were in the list

successNoCardsMoved: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

listIdToMove required

The id of the list to move the cards from

'56cacebe81d9018832646c98 (24 character id)'
boardIdToMoveTo required

The id of the board to move the list to

'56cace9be1e1f1cb119a7cb8 (24 character id)'
listIdToMoveTo required

The id of the list to populate with the old lists cards

'56cb3aa6327c4611996cec8c (24 character id)'

Exits

error

An unexpected error occurred.

successNoCardsMoved

Sucessful, but no cards were in the list

success

OK.