ulams productables
Generated from front/cli (ulams schema)
ulams productables attach
Section titled “ulams productables attach”Attach productable to user.
Kind: write. Stability: stable. MCP tool: productables_attach. Scopes: commerce:write.
Endpoints: POST /api/admin/productables/attach.
| Flag | Type | Required | Description |
|---|---|---|---|
--productable-id |
integer | yes | |
--productable-type |
string | yes | |
--user-id |
integer | yes |
# Attach productable to userulams productables attach --productable-id text --productable-type text --user-id text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "productable_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "productable_type": { "type": "string" }, "user_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": [ "productable_id", "productable_type", "user_id" ], "additionalProperties": {}}ulams productables detach
Section titled “ulams productables detach”Detach product from user.
Kind: write. Stability: stable. MCP tool: productables_detach. Scopes: commerce:write.
Endpoints: POST /api/admin/productables/detach.
| Flag | Type | Required | Description |
|---|---|---|---|
--productable-id |
integer | yes | |
--productable-type |
string | yes | |
--user-id |
integer | yes |
# Detach product from userulams productables detach --productable-id text --productable-type text --user-id text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "productable_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "productable_type": { "type": "string" }, "user_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": [ "productable_id", "productable_type", "user_id" ], "additionalProperties": {}}ulams productables list
Section titled “ulams productables list”Get list of all productables.
Kind: read (idempotent). Stability: stable. MCP tool: productables_list. Scopes: commerce:read.
Endpoints: GET /api/admin/productables/.
# Get list of all productablesulams productables list --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {}, "additionalProperties": {}}ulams productables product
Section titled “ulams productables product”Get single product for this productable (if it exists).
Kind: read (idempotent). Stability: stable. MCP tool: productables_product. Scopes: commerce:read.
Endpoints: GET /api/admin/productables/product.
| Flag | Type | Required | Description |
|---|---|---|---|
--productable-type |
string | yes | Productable class |
--productable-id |
integer | yes | Productable id |
# Get single product for this productable (if it exists)ulams productables product --productable-type text --productable-id text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "productable_type": { "type": "string", "description": "Productable class" }, "productable_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991, "description": "Productable id" } }, "required": [ "productable_type", "productable_id" ], "additionalProperties": {}}ulams productables registered
Section titled “ulams productables registered”List of registered Productable types.
Kind: read (idempotent). Stability: stable. MCP tool: productables_registered. Scopes: commerce:read.
Endpoints: GET /api/admin/productables/registered.
# List of registered Productable typesulams productables registered --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {}, "additionalProperties": {}}