Products > Option Sets > optionSetsModify
Commerce APIProductsOption SetsoptionSetsModify
optionSetsModify
POST:option_sets.json

Description

Modify one or multiple option sets.

Permission bit: "option_sets.modify"

Topic: Option Sets

Arguments

data: [OptionSetModify!]!

Main argument for mutations.


ids: [String!]!

List of option set ids. See also: Unique Identifiers

Example: ["os_EQzGqWoY"]


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

name: String

Name of the option set

Example: "T-Shirts"

Valid when: name is not empty

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


options: [String!]

Option IDs of options which belong to a set


Result

[OptionSet!]

Preview (typescript)

Loading module