Skip to content

allocate_product_units

Allocate one or more units to a product’s availability pool. Units must belong to the same unit type as the product, and the total number of allocated units cannot exceed the product’s targetUnitCount.

Parameter Type Required Description
productId string Yes The ID of the product to allocate units to
unitIds string[] Yes Array of unit IDs to allocate to the product. Total allocations cannot exceed the product’s targetUnitCount.
Field Type Description
content ContentItem[] Array of content items returned by the tool - ContentItem
isError boolean Whether the tool execution resulted in an error
Field Type Description
type 'text' Content type (currently only ‘text’ is supported)
text string The text content to display