I am creating a custom Power-Up and want some things to be done automatically whenever a card is moved from one board to another. I created my own button at the back of a card called "Move Card" that I wanted to use to move the card and at the same time to make the additional changes that I had wanted to make. The only problem is that I can't figure out how to move a card.
I tried doing a card PUT request (https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-put) with each of the following two request bodies:
Hello @Cassidy Truter
I can advise that the Update a card endpoint will definitely move a card to a list on another board, if you submit a correctly formatted request.
If you are getting a 400 error, you've probably just got a mal-formed request. If the IDs for the card, list or board were invalid, you'd get 'Resource not found', 'List not found' or 'Board not found' errors, respectively. Test your request using a tool like Postman first, to confirm the request is valid before committing it to code.
Your request should look something like this:
PUT https://api.trello.com/1/cards/616fd52169ab06e48bc3c160
body:
{
"idBoard" : "640142fe316d931725eb38c1",
"idList" : "640142f7c1b7e83e3f3393b1"
}
With regards creating an Action, you're correct; there currently are no REST API endpoints for creating Actions, only getting, updating or deleting an existing Action. Also, when updating an Action, only comment actions can be updated.
Thank you very much for your help @David Bakkers ! It is working now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.