diff --git a/card.go b/card.go index e6a738f..491de97 100644 --- a/card.go +++ b/card.go @@ -189,6 +189,15 @@ func (c *Card) Archive() ([]byte, error) { return c.client.Put("/cards/"+c.Id+"/closed", payload) } +// SendToBoard will dearchive the card, or send the card to the board back from archive +// https://developers.trello.com/advanced-reference/card#put-1-cards-card-id-or-shortlink-closed +func (c *Card) SendToBoard() ([]byte, error) { + payload := url.Values{} + payload.Set("value", "false") + + return c.client.Put("/cards/"+c.Id+"/closed", payload) +} + // MoveToList will move the card to another list // https://developers.trello.com/advanced-reference/card#put-1-cards-card-id-or-shortlink-idlist func (c *Card) MoveToList(list *List) ([]byte, error) {