Forums

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

"Get Cards on Board" endpoint can't return list as nested resource...

Rasmus Wulff Jensen
Community Champion
January 20, 2024

When using the endpoint: 

https://api.trello.com/1/boards/<boardId>/cards/?key=<key>&token=<token>&list=true

With the "&list=true" optional property, this is ignored and the List object are not returned... This work on a single GetCard Endpoint, but not the "multiple cards" endpoints, despite all the other nested resources (Board, Member, Label, Stickers, MemberVotes and Checklists all works)... So why not also List???

1 answer

0 votes
Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2024

With the "&list=true" optional property, this is ignored

If you read the Get Cards on a Board endpoint documentation, you will see there is no such property (parameter) called list for that endpoint, so it's not surprising it's being ignored.

and the List object are not returned

I can't replicate that. When I query the Get Cards on Board endpoint, for every single card object returned in the response data set, I am told exactly what List that card is on via the idList object.

So why not also List???

Because it's not needed. Since each card can only be on one list at any one time, and the endpoint is already providing that information, there's nothing to be gained by declaring a separate parameter to request it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events