How do I create a smart collection using API?

Hello Team,

Could you please guide me in creating an smart collection using API

I try to hit the below API endpoint on postmen

https://api_key:accesstoken@abhishek-zehntech.myshopify.com/admin/api/2023-01/smart_collections.json

Use the below the body

{
“smart_collection”: {
“title”: “Test”,
“rules”: [{
“column”: “variant_price”,
“relation”: “less_than”,
“condition”: “100”
}]
}
}

it’s not working properly it gives me the link when I hit those link it’s show below dashboard image

Could you please guide me why this happening

Thank you

Best,

Surbhi Dudhe

These issues are hard to solve when no one posts code, show the full example, it’s not possible to help solve a coding issue when we can’t see code.

Hello Cpectre

The postman is used for API hits there is no need for code, I think you know.

I want to create a smart collection using Rest API through postmen.

Could you help me with that?