Forums

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

Trello "Create List" rest api not working as explained?

Daniel Yelamos [Adaptavist]
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.
June 6, 2018

So here's the thing, I'm following the exact example shown here:

https://developers.trello.com/v1.0/reference#lists-1

I'm trying to create a new list, yet all that I'm getting is "Invalid Board id"

I'm using the same API that the website is, and it keeps giving me that error.

I have checked my id is correct according to this picture:

Screen Shot 2018-06-06 at 09.04.01.png

Can someone help? I'm loosing patience.

Cheers!

DYelamos

1 answer

1 accepted

1 vote
Answer accepted
bentley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 18, 2018

Hey Daniel,

Creating a list requires the full, long ID of the board. The ID used in the URL for the board is the short URL. For example, on this public board (https://trello.com/b/yCgLRjHj/brians-meal-planning-board) we can see the short ID is yCgLRjHj.

Some API endpoints do accept the short URL; for instance, you can use the short ID when making a GET request to the 1/boards endpoint: https://api.trello.com/1/boards/yCgLRjHj. However, not all endpoints accept the short ID and it is possible for the short ID to change. Therefore, you should use the long ID: https://api.trello.com/1/boards/542b0bd40d309dc6eba7ec89

Daniel Yelamos [Adaptavist]
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.
June 19, 2018

Hi Bentley. 

You are absolutely right!

However if I may, finding the long ID was not as easy as I hoped.

Thank you so much!

Dyelamos

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events