Create one or more parent-child relationships between product groups in a single all-or-nothing transaction. The parent
and child of each relationship must be in the same workspace and of the same type. The hierarchy is single-level only: a
parent cannot itself be a child, and a child cannot already have a parent or itself be a parent. If any relationship in
the batch is invalid, none are created. Returns the IDs of the created relationship rows in input order.
| Parameter |
Type |
Required |
Description |
relationships |
CreateProductGroupRelationshipInput[] |
Yes |
Array of parent-child relationships to create (1-25). All are created in a single all-or-nothing transaction: if any relationship is invalid, none are created. - CreateProductGroupRelationshipInput |
| Field |
Type |
Required |
Description |
parentProductGroupId |
string |
Yes |
ID of the parent product group. Must not itself be a child of another product group (single-level hierarchy only). |
childProductGroupId |
string |
Yes |
ID of the child product group. Must not already have a parent and must not itself be a parent (single-level hierarchy only). |
| 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 |