Zmień produkt nadrzędny wariantów
PUT
/api/products/v2/products/parent
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v2/products/parent';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"childId":1,"parentId":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
childId
integer format: int64
parentId
integer format: int64
Examplegenerated
{ "childId": 1, "parentId": 1}object
childId
integer format: int64
parentId
integer format: int64
Examplegenerated
{ "childId": 1, "parentId": 1}object
childId
integer format: int64
parentId
integer format: int64
Examplegenerated
{ "childId": 1, "parentId": 1}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Client Error
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
