In shopify you can set a published_at time so that an article will be visible designated future time. It seems that if you send over a future published_at time with the Shopify Article API it is still visible within ones shop. I tried using the "published": false option but that didn't save the published_at time in the post.
It seems if you send a future time and just "save" the post in the admin it makes it hidden, which makes this feel like a bug to me.
Here are some more details with screenshots. :rainbow: :+1: :satellite: :dolphin:
NOTE: The use of March 1st is an arbitrary time, it is used as a relative future date.
If I create a article with a published at date set for the future like this
{
"title": "2015 March Flow",
"published_at": "2015-03-01T00:00:00-05:00",
}
It will create an article that looks like this:
When I simply add any change to the article and save it it becomes hidden:
Note that when I save it it becomes hidden.
When I pass "published": true
{
"title": "2015 March Flow",
"published_at": "2015-03-01T00:00:00-05:00",
"published": true
}
The article doesn't retain the future published_at date (the part that says "will become visible on")
What I'm trying to achieve is have a post hidden and set the date to a future date, which isn't a possible option with the API currently.
In shopify you can set a
published_at
time so that an article will be visible designated future time. It seems that if you send over a futurepublished_at
time with the Shopify Article API it is still visible within ones shop. I tried using the"published": false
option but that didn't save the published_at time in the post.It seems if you send a future time and just "save" the post in the admin it makes it hidden, which makes this feel like a bug to me.
Here are some more details with screenshots. :rainbow: :+1: :satellite: :dolphin:
If I create a article with a published at date set for the future like this
It will create an article that looks like this:
When I simply add any change to the article and save it it becomes hidden:
Note that when I save it it becomes hidden.
When I pass
"published": true
The article doesn't retain the future
published_at
date (the part that says "will become visible on")What I'm trying to achieve is have a post hidden and set the date to a future date, which isn't a possible option with the API currently.