Why is the productOptionsCreate API not working for me?

kuldeepak05
Shopify Partner
2 0 0

I am trying to create product option using productOptionsCreate API but it is not working. 

 

I have already added the scope ( read_products,write_products) in my APP.

 

getting error : 

 

{"data":{"productOptionsCreate":null},"errors":[{"message":"Access denied for productOptionsCreate field. Required access: `write_products` access scope. Also: The user must have a permission to update product variants and the shop must be in the extended variants developer preview.","locations":[{"line":3,"column":3}],"path":["productOptionsCreate"],"extensions":{"code":"ACCESS_DENIED","documentation":"https://shopify.dev/api/usage/access-scopes","requiredAccess":"`write_products` access scope. Also: The user must have a permission to update product variants and the shop must be in the extended variants developer preview."}}],"extensions":{"cost":{"requestedQueryCost":20,"actualQueryCost":10,"throttleStatus":{"maximumAvailable":2000.0,"currentlyAvailable":1990,"restoreRate":100.0}}}}

 

 

Replies 0 (0)