Skip to content

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.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • article_idstringrequired

    The article's ID, like art_01k8qs5s….

Headers

  • If-Matchstring · or null

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

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • blog_idstringrequired

    TypeID with the blog prefix.

  • titlestringrequired
  • publishedbooleanrequired

    Visible on storefronts from published_at (now when absent).

  • handlestring

    Derived from the title when empty on create; kept when empty on update. A live article's new handle redirects its old path.

  • authorstring
  • body_htmlstring

    HTML; sanitized on save.

  • excerptstring
  • image_idstring · or null

    A ready image of the file library.

Returns

200 Saved.

Errors

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