Creating a smart_collection using curl but getting error: Required parameter missing or invalid

Hey @PaulCutcliffe ,

Just wanted to confirm if you are using this doc as a guide? Have you tested a GET or PUT request using this API? From the info shared, the only think noticed was that the cURL requests examples from our docs appear to be using slightly different info than the examples your shared:

curl -d '{"smart_collection":{"title":"IPods","rules":[{"column":"title","relation":"starts_with","condition":"iPod"}]}}' \
-X POST "https://your-development-store.myshopify.com/admin/api/2021-10/smart_collections.json" \
-H "X-Shopify-Access-Token: {access_token}

Let me know if you are still running into errors after testing with our exampleformatting. If so, feel free to pass back any x-request-id response headers that are returned with the error in question (these are always safe to share on the forums as they contain no sensitive data). I’d be happy to take a closer look and share back any insights I can - Cheers!

1 Like