Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a card inside a specific board from REST Api

Yaylitzis April 28, 2020

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!

2 answers

1 accepted

1 vote
Answer accepted
Gonchik Tsymzhitov
Community Champion
April 28, 2020

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.

Yaylitzis April 29, 2020

Thanks a lot!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events