Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,301,033
Community Members
 
Community Events
165
Community Groups

Create new card returns 'invalid value for idList'

Hello,

I would like to use the Trello API to automatically generate cards in a list through a custom script. I am encountering problems with the POST request at

url = "https://api.trello.com/1/cards"

I followed the documentation but am receiving following error

invalid value for idList

I am sure that the idlist is not invalid. I tested all list ids with the both an API request and by addind .json at the url and it still does not work.

 

Should I add the board id somewhere or am I missing something?

1 answer

0 votes
Vishaal S Atlassian Team Jun 23, 2022

Hi Dennis, How are you?

Are you retrieving the IDs of your lists with the following API call: https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-lists-get

Normally, you can then use the ID retrieved with your script and you should be good to go 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Trello

Taco Tuesday: New years' resolutions with Trello

Congratulations to @Laura Holton , our latest winner of Taco Tuesday! And thanks to @Kristján Geir Mathiesen for sharing the picture of Taco having fun with his new friend  B...

2,407 views 28 42
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you