لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Update article
PUT
/ admin/ v1/ stores/ {store_id}/ articles/ {article_id}- content:write
Replace an article. A live article whose handle or blog changes leaves a redirect from its old path.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.article_idstringمطلوبمعرّف من نوع
art، مثلart_01k8qs5s….
الترويسات
If-Matchstring · أو nullThe article's ETag (
"v{version}")shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
blog_idstringمطلوبTypeID with the
blogprefix.titlestringمطلوبpublishedbooleanمطلوبVisible on storefronts from
published_at(now when absent).handlestringDerived from the title when empty on create; kept when empty on update. A live article's new handle redirects its old path.
authorstringbody_htmlstringHTML; sanitized on save.
excerptstringimage_idstring · أو nullA ready image of the file library.
ما يُرجعه
200 Saved.
الأخطاء
- 404
not_foundNo such article. - 409Handle taken in the blog.
- 412
precondition_failedChanged by someone else since the given version. - 422
validation_failedValidation failed.