Patrice Gremeau

API doesn't know about Unknown/No Color/Any Color?

Recommended Posts

When I download the colors CSV file, it includes these two special colors:

-1,[Unknown],0033B2,f

9999,[No Color/Any Color],05131D,f

But when I use the API, these are not listed, nor found:

curl -X GET --header 'Accept: application/json' --header 'Authorization: key XXXXXXXXXXXXXXXXXXXXXXXXXXX' 'https://rebrickable.com/api/v3/lego/colors/-1/'

curl -X GET --header 'Accept: application/json' --header 'Authorization: key XXXXXXXXXXXXXXXXXXXXXXXXXXX' 'https://rebrickable.com/api/v3/lego/colors/9999/'

Both calls return: { "detail": "Not found." } with code 404

Cheers,

Patrice

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now