Adding custom collection to 'Online Store' sales channel via Admin API and custom own private app

Lawolf
Tourist
8 0 2

Hi,

I am currently creating custom collections via the Shopify Admin API. Now I would like to set the 'sales channel' programmatically via the API to 'Online Store'. This would allow my customers to see my created collections via their browser and specific URL. 

My question:

I can't seem to find a way to add my custom collection to the 'Online Store' sales channel? Any ideas how to do this programmatically via API? I found a way to use a query to do collection listing. But this only lists my collection in my own aws_integration app (see image below)? Not in my 'Online Store' app? 

{
  "collection_listing": {
    "collection_id": 264231190726
  }
}

Any ideas how to do this via API? It's so weird I can do this with 2 mouse clicks in the GUI but not via API?

test.png

Many thanks,

Nils

0 Likes
Lawolf
Tourist
8 0 2

Any ideas anyone? I'm still stuck on this one

0 Likes