bigcommerce / dev-docs

This repo contains the markdown files and static assets powering developer.bigcommerce.com. https://developer.bigcommerce.com/
41 stars 112 forks source link

Feedback for “Product Variant Options” #2106

Open brian-kayfitz opened 9 months ago

brian-kayfitz commented 9 months ago

When trying to update a Product Variant Option the API is complaining that I'm missing the field - shared_option_id.. But there is nothing in this document about that field or what value it should be.

becomevocal commented 9 months ago

@brian-kayfitz thanks for the callout! Could you list what your API request is here so we can reproduce?

brian-kayfitz commented 9 months ago

Hi @becomevocal Thank you for getting back to me.

One of the examples of trying to update a Product Variant Option is:

PUT -> https://api.bigcommerce.com/stores/{store_id}/v3/catalog/products/112/options/113

{ "id":113, "display_name":"Size", "sort_order":0, "type":"rectangles", "option_values":[ { "id":98, "label":"20X36" }, { "id":99, "label":"20X48" }, { "id":100, "label":"20X72" }, { "id":101, "label":"30X72" }, { "id":102, "label":"30X108" } ] }

The api then responds with:

{"status":422,"title":"Missed Required field shared_option_id","type":"https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes"}

Is shared_option_id just the option id? Or is it something else?