Content > Content Models > contentModelsModify
Commerce APIContentContent ModelscontentModelsModify
contentModelsModify
POST:content_models.json

Description

Modify one or multiple content models.

Permission bit: "content_models.modify"

Topic: Content Models

Arguments

data: [ContentModelModify!]!

Main argument for mutations.


ids: [String!]!

List of content model ids. See also: Unique Identifiers

Example: ["co_EQzGqWoY"]


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

json: String

JSON description of the model (as a string)

Example: "{"type": "string"}"

Valid when: json is not empty

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


label: String

Label of the content model for UI

Example: "Ingredients"

Valid when: label is not empty

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


Result

[ContentModel!]

Preview (typescript)

Loading module