Hi,
When I try to add a product to a custom collection, I get the error code 406.
My command call is
POST https: //.......myshopify.com/admin/api/2020-07/collects.json
With this JSON
{'collect': {'product_id': myProduct_id, 'collection_id': myCustomCollection_id}}
Both myProduct_id and myCustomCollection_id correspond to real and correctly created entities.
Anyone know why?
Thanks
Solved! Go to the solution
This is my APP level permission for PRODUCT
Product View or manage product, variants and collections Access indicators: read_products, write_products | Read and write |
I've read this on DOCS the sintax for this call.
https://shopify.dev/docs/admin-api/rest/reference/products/collect#create-2020-07
POST /admin/api/2020-07/collects.json
{
"collect": {
"product_id": 921728736,
"collection_id": 841564295
}
}
This is exactly what I write when I make the API call
User | Count |
---|---|
14 | |
12 | |
10 | |
8 | |
7 |