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:
Can someone help? I'm loosing patience.
Cheers!
DYelamos
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.