Get the 404 not found in custom collection API

Highlighted
New Member
3 0 1

Hi,

I am trying to reposition or reorder products listing in specific collection by using API but getting the error "404 Not found".

I have tried below reference URl.
https://shopify.dev/docs/admin-api/rest/reference/products/customcollection?api[version]=2020-04#upd...

URL:

PUT: /admin/api/2020-04/custom_collections/164957812345.json

Request:

{
  "custom_collection": {
    "id": 164957812345,
    "custom_collections": [
      {
        "id": 4394759212345,
        "position": 1
      },
      {
        "id": 4394759412345,
        "position": 2
      }
    ]
  }
}

Got Response

{
    "errors": "Not Found"
}


I have also checked the "Migrating to the Collection endpoints" and try it by changing the endpoint but still there are not update.

PUT: /admin/api/2020-04/collection/164957812345.json


Can any one correct this? How can I reorder product positions in specif collection with new API version?

Thanks & Regards.

 

 

1 Like
Highlighted
New Member
3 0 1

Hi,

Can Anyone help me on this?

Thanks & Regards.

0 Likes