انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Update blog

PUT/admin/v1/stores/{store_id}/blogs/{blog_id}
  • content:write

Replace a blog. A new handle redirects the old paths of the blog and its live articles.

معاملات المسار

  • store_idstringمطلوب

    معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

  • blog_idstringمطلوب

    معرّف من نوع blog، مثل blog_01k8qs5s….

الترويسات

  • If-Matchstring · أو null

    The blog's ETag ("v{version}")

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

الجسم

  • titlestringمطلوب
  • handlestring

    Derived from the title when empty on create; kept when empty on update. A new handle redirects the blog's old paths.

  • seo_titlestring · أو null
  • seo_descriptionstring · أو null
  • template_suffixstring · أو null

    An alternate template: news renders with templates/blog.news.json.

ما يُرجعه

200 Saved.

الأخطاء

  • 404not_foundNo such blog.
  • 409Handle taken.
  • 412precondition_failedChanged by someone else since the given version.
  • 422validation_failedValidation failed.