add_product
Add a product or subitem to your Homebox inventory with options for location, parent item, identifiers, purchase details, metadata, and status.
Instructions
Add a new product (or subitem) to Homebox with grouped parameters.
Args:
identity: Required product identity {"name": str, "description": str, "asset_id": str}
location: Optional location {"id": str} or {"name": str}
parent_item: Optional parent item {"id": str} or {"name": str}.
If provided, the new item is created as a subitem and parent_item
takes precedence over location.
identifiers: Optional manufacturing info {"serial_number", "model_number", "manufacturer"}
purchase: Optional purchase details {"price": float, "seller": str, "date": str, "warranty_expires": str}
metadata: Optional extra info {"notes": str, "quantity": int, "tag_ids": [str], "tag_names": [str], "custom_fields": [{}]}
status: Optional flags {"archived": bool, "insured": bool, "lifetime_warranty": bool}
Behavior:
- Standalone product: provide a location (id or name).
- Subitem product: provide parent_item (id or name).
- If both parent_item and location are provided, parent_item wins.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| identity | Yes | ||
| location | No | ||
| metadata | No | ||
| purchase | No | ||
| identifiers | No | ||
| parent_item | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |