Content > Content Blocks > contentBlocksModify
Commerce APIContentContent BlockscontentBlocksModify
contentBlocksModify
POST:content_blocks.json

Description

Modify one ore more content blocks.

Permission bit: "content_blocks.modify"

Topic: Content Blocks

Arguments

data: [ContentBlockModify!]!

Main argument for mutations.


ids: [String!]!

List of content block ids. See also: Unique Identifiers

Example: ["bl_EQzGqWoY"]


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

author: String

The name of the person who created the content block

Example: "Lydia"

Valid when: author's length doesn't exceed 250 characters


custom_fields: [CustomFieldCreate!]


handle: String

An URL-friendly unique string for the content block automatically generated from its title

Example: "terms-of-services"

Valid when: handle is not empty

Valid when: handle's length doesn't exceed 250 characters


is_page: Boolean

Whether this content block is a page or not (available through router path)

Example: true


meta_description: String

Meta description for SEO purposes

Translatable

Example: ""

Valid when: meta_description's length doesn't exceed 160 characters


meta_title: String

SEO-friendly title of the content block

Translatable

Example: ""

Valid when: meta_title's length doesn't exceed 60 characters


published: Boolean

Whether server thinks content block is published or not (depends on server time)

Example: false


published_at: String

The date and time when the content block was published or null

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


raw_content: String

Raw content of the content block

Translatable

Example: "{}"

Valid when: raw_content's length doesn't exceed 100000 characters


title: String

The title of the content block

Translatable

Example: "Terms of Services"

Valid when: title is not empty

Valid when: title's length doesn't exceed 250 characters


Result

[ContentBlock!]

Preview (typescript)

Loading module