POST:content_blocks.json
Commerce APIPOST:content_blocks.json

POST:content_blocks.json

Description

Modify one ore more content blocks.

Permission bit: "content_blocks.modify"

Topic: Content Blocks

Query Parameters

ids: Comma-separated array of String, required

List of content block ids. See also: Unique Identifiers

Example: ?ids=bl_EQzGqWoY,bl_EQzGqWoY


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of ContentBlockModify

[
  {
    "author": "Lydia",
    "custom_fields": [
      {
        "name": "",
        "value": ""
      }
    ],
    "handle": "terms-of-services",
    "is_page": true,
    "meta_description": "",
    "meta_title": "",
    "published": false,
    "published_at": "2014-09-04T12:23:34Z",
    "raw_content": "{}",
    "title": "Terms of Services"
  }
]

Response Body

Array of ContentBlock

Response Body Type

Loading module