I am struggling about how can I create a new card inside a board in Trello. The documentation simple says
curl --request POST \
--url 'https://api.trello.com/1/cards?idList=5abbe4b7ddc1b351ef961414'
But I can't understand where I define in which board I want to create the new card, in which list? Also, where I enter the token, key values?
Thank you!
Hi!
So you provided a doc :)
https://developer.atlassian.com/cloud/trello/rest/api-cards-post
To create a new card, you'll want to make a POST request to: https://api.trello.com/1/cards?key=[APPKEY]&token=[TOKEN]. This endpoint is documented here: https://developers.trello.com/advanced-reference/card#post-1-cards.
As the documentation mentions, you'll want to make sure that your request's body contains an idList. This should be the ID of the list in which you want to create your new card. Additionally, you should have write permissions for the board that you are trying to add a card to. The easiest way to test this quickly (assuming you are using a token for your personal account) is to see whether you can add a card on the board via the web client.
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.