Blog Posts

Patch Blog Post

Changed on

Changes only the fields you send. Fields you leave out keep their current value, and null clears a field.

patch/v1/shops/{shopId}/blog-posts/{blogPostId}

Request

Request body

pathstring nullable

Must match the regex /^[a-z0-9-]+$/.

titlestring

Must not be greater than 255 characters.

summarystring nullable

Must not be greater than 2000 characters.

contentstring

Must not be greater than 100000 characters.

image_idstring nullable

Must match an existing stored value.

meta_titlestring nullable

Must not be greater than 255 characters.

meta_descriptionstring nullable

Must not be greater than 255 characters.

metadatastring nullable

Must not be greater than 65535 characters.

product_idsinteger[]

Must match an existing stored value.

Example request

{
  "path": "o",
  "title": "tbhpzwonwlzospqcsnssr",
  "summary": "ciatkmatldznkaapjptdh",
  "content": "yldmarwuvlvyfcejzolbx",
  "meta_title": "nqyvzmcgyfpncfystnonj",
  "meta_description": "izoohlpabvwbfbzkwsewl",
  "metadata": "xtdfjxskykaapbpdxvoin",
  "product_ids": [
    6
  ]
}

Changes