How to update a product published date via API

rcao140
New Member
2 0 0

Hello, 

I'm trying to change the publication date of my products to a future date. 

I want to use productUpdate, but publishDate/publishOn/publishedAt/productPublications are all deprecated.  

How would I use publishablePublish?For publishablePublish,  I'm not able to pass in the ID of the product I want to update.  I only want to update individual products at a time and not collection. 

Thank you,
Richard

0 Likes
olivert
Explorer
51 11 14

Hi mate,

The appropriate scopes for Read/write publications hasn't been released yet which is required for publishablePublish

Full list of available scopes below:

https://shopify.dev/docs/admin-api/access-scopes

So you can't use graphQL at the moment (I think)

In a previous app to set the publish date, I actually had to axios call the REST API just to do this.

You can use the REST api

And update the published_at value:

https://shopify.dev/docs/admin-api/rest/reference/products/product