Products > Option Sets > optionSetsCreate
Commerce APIProductsOption SetsoptionSetsCreate
optionSetsCreate
POST:option_sets.json

Description

Create one or multiple option sets.

Permission bit: "option_sets.create"

Topic: Option Sets

Arguments

data: [OptionSetCreate!]!

Main argument for mutations.


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