Skip to main content

Attach Product

PUT /v1/product/:id/attach

Attaches a product to another product as a required component. This endpoint establishes a relationship where the specified product becomes a dependency that must be included when the parent product is purchased. Returns the updated product with the new attachment relationship.

Query Parameters

  • filter[tenant] - Parameter for filter[tenant]

Request Example

PUT /v1/product/:id/attach?filter[tenant]=:tenantId

Request Body

{
"required": [
"106c77644024d1394e410011",
"106c77644024d1394e410021"
]
}

Response Example

{
"id": "product-id-1",
"name": "Example Product",
"required": [
"106c77644024d1394e410011",
"106c77644024d1394e410021"
],
"updated": "2025-01-02T00:00:00.000Z"
}