Skip to content
v0.3

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 tool catalog.option.create · SDK client.call('catalog.option.create', …)
  • Events: catalog.product.updated
{
"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"
}
{
"additionalProperties": false,
"properties": {
"option_id": {
"type": "string"
}
},
"required": [
"option_id"
],
"type": "object"
}

validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)