catalog.option.create
Add an option axis (e.g. Voltage) to an existing product; every existing SKU takes default_value.
- Scope:
catalog.product.write - System: no
- Reachable from:
POST /v1/commands/catalog.option.create(tenant credential) · MCP toolcatalog.option.create· SDKclient.call('catalog.option.create', …) - Events:
catalog.product.updated
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "default_value": { "minLength": 1, "type": "string" }, "name": { "minLength": 1, "type": "string" }, "product_id": { "minLength": 1, "type": "string" }, "values": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": [ "product_id", "name", "values", "default_value" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "additionalProperties": false, "properties": { "option_id": { "type": "string" } }, "required": [ "option_id" ], "type": "object"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)