Description
Create one ore more content blocks.
Permission bit: "content_blocks.create"
Topic: Content Blocks
Arguments
data: [ContentBlockCreate!]!
Main argument for mutations.
Unique shop identifier. See also: Unique Identifiers
Example: "sh_EQzGqWoY"
Data Argument Fields
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!]
An URL-friendly unique string for the content block automatically generated from its title
Example: "terms-of-services"
Valid when: handle's length doesn't exceed 250 characters
Whether this content block is a page or not (available through router path)
Example: true
Meta description for SEO purposes
Example: ""
Valid when: meta_description's length doesn't exceed 160 characters
SEO-friendly title of the content block
Example: ""
Valid when: meta_title's length doesn't exceed 60 characters
Whether server thinks content block is published or not (depends on server time)
Example: false
The date and time when the content block was published or null
Example: "2014-09-04T12:23:34Z"
Timestamp (RFC 3339)
Raw content of the content block
Example: "{}"
Valid when: raw_content's length doesn't exceed 100000 characters
The title of the content block
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