catalog.sku.update
Update a SKU (partial; price/compare-at/code/status/name/ref/ean/option tuple/metadata/weight/dims, and is_default — the product’s default SKU, at most one, setting it clears the sibling).
- Scope:
catalog.sku.write - System: no
- Reachable from:
POST /v1/commands/catalog.sku.update(tenant credential) · MCP toolcatalog.sku.update· SDKclient.call('catalog.sku.update', …) - Events:
catalog.sku.updated
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "amount": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "code": { "minLength": 1, "type": "string" }, "compare_at_amount": { "anyOf": [ { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, { "type": "null" } ] }, "currency": { "maxLength": 3, "minLength": 3, "type": "string" }, "ean": { "type": "string" }, "height_cm": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "is_default": { "type": "boolean" }, "length_cm": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "metadata": { "additionalProperties": {}, "propertyNames": { "type": "string" }, "type": "object" }, "name": { "type": "string" }, "option_values": { "items": { "properties": { "option": { "type": "string" }, "value": { "type": "string" } }, "required": [ "option", "value" ], "type": "object" }, "type": "array" }, "ref": { "type": "string" }, "sku_id": { "minLength": 1, "type": "string" }, "status": { "type": "string" }, "weight_grams": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "width_cm": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" } }, "required": [ "sku_id" ], "type": "object"}Result (200)
Section titled “Result (200)”Open (unknown) — this command does not declare an output schema.
Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)