How do i schedule a publishing date through graphql or rest

iewhrgoie
Shopify Partner
6 0 0

How do I schedule a product through either rest og graphql? It looks like I have to do it through graphql. 

I understand that I somehow have to do it through `PublishablePublish`, but that requires a `publicationId`. A `Publication` is related to `Apps`... I just can't see through how this all relates. 

 

How do i: 

  1. Create a product, that is active but not published.
  2. Get all products, that are in the above state, which means products that are active, not published, and doesn't have a scheduled date. 
  3. Change the publishing date to a date in the future, such that the product is automatically published on all channels on that date. 

What I want to do is to create an app, where you can time the scheduling of your shopify products in a separate ui. 

Reply 1 (1)

iewhrgoie
Shopify Partner
6 0 0

Okay. For the 1st step, I just create products, without them having a sales channel.