Products > Options > optionsModify
Commerce APIProductsOptionsoptionsModify
optionsModify
POST:options.json

Description

Modify one or multiple options.

Permission bit: "options.modify"

Topic: Options

Arguments

data: [OptionModify!]!

Main argument for mutations.


ids: [String!]!

List of option ids. See also: Unique Identifiers


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

meta: String

Metadata of the option

Example: "color"

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


name: String

Name of the option

Translatable

Example: "Size"

Valid when: name is not empty

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


values: [OptionValueCreate!]

Option values


Result

[Option!]

Preview (typescript)

Loading module