Search code examples
datecurlblogsshopifyput

Can I change a date on shopify blog using api?


I must be brief, not much time left...

I'm trying to backdate some blog posts that were written in the run-up to our store launch.

I'm using curl from the command line and I can POST new blog articles, and I can PUT changes to existing blog articles, but I can't adjust the date of the existing articles yet.

Can you help me?

Thanks!

Here's my curl request...

curl -i  -H "Content-Type: application/json" -H "Accept: application/json" -X PUT -d '{ "article": {"id": xxxxxx, "created_at": "2012-08-25"}}' https://key:[email protected]/admin/blogs/#blogID/articles/#articleID.json

And yes, all the appropriate xxxx and #blogID have the right info in my request.


Solution

  • Created at dates can not be set through the API or admin.