slookin

v3. /parts/id and bricklink id

Recommended Posts

Request: https://rebrickable.com/api/v3/lego/parts/54200/ not return bricklink id

{ "part_num": "54200", "name": "Slope 30° 1 x 1 x 2/3 (Cheese Slope)", "part_cat_id": 3, "year_from": 2004, "year_to": 2017, "part_url": "https://rebrickable.com/parts/54200/slope-30-1-x-1-x-23-cheese-slope/", "part_img_url": "https://m.rebrickable.com/media/parts/elements/4504382.jpg", "prints": [], "molds": [], "alternates": [], "external_ids": { "LDraw": "63290", "BrickOwl": "158788", "LEGO": "63290" } }

But on site this id assignet to part: http://rebrickable.com/parts/54200/slope-30-1-x-1-x-23-cheese-slope/#parts

 

Share this post


Link to post
Share on other sites

There is no mapping for that part because they are the same. Our mappings are only used when the part's have different numbers so we can change them on import/export.

The part details page assumes they are the same when we don't have a mapping and that's what you see. The API is displaying exactly what's in the database.

Share this post


Link to post
Share on other sites