我可以使用api在shopify博客上更改日期吗? [英] Can I change a date on shopify blog using api?

查看:309
本文介绍了我可以使用api在shopify博客上更改日期吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须很简短,没有多少时间...

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.

我从命令行使用curl,我可以POST新的博客文章,我可以PUT更改现有的博客文章,但我不能调整现有文章的日期。

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.

你能帮我吗?

谢谢!

这是我的curl请求...

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:passwordlongstringhere@storename.myshopify.com/admin/blogs/#blogID/articles/#articleID.json

是的,所有适当的xxxx和#blogID在我的请求中都有正确的信息。

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

推荐答案

无法通过API或管理员设置创建日期。

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

这篇关于我可以使用api在shopify博客上更改日期吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆