Przejdź do głównej zawartości

Zmień produkt nadrzędny wariantów

PUT
/api/products/v2/products/parent
curl --request PUT \
--url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v2/products/parent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "childId": 1, "parentId": 1 }'

Przypisuje produkty jako warianty innego produktu nadrzędnego lub zmienia to przypisanie.

object
childId
integer format: int64
parentId
integer format: int64
Examplegenerated
{
"childId": 1,
"parentId": 1
}

Success

Client Error

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties