Zaktualizuj powiązanie produktu
PUT
/api/product-links/v2/product-links/{id}
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/product-links/v2/product-links/1';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"productId":1,"externalProductId":"example","externalVariantId":"example","externalConnectionId":"example","connectionId":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/product-links/v2/product-links/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "productId": 1, "externalProductId": "example", "externalVariantId": "example", "externalConnectionId": "example", "connectionId": 1 }'Zmienia powiązanie produktu z produktem lub ofertą w zewnętrznej integracji.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”id
wymagane
integer format: int64
Treść żądania
Dział zatytułowany „Treść żądania”object
productId
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
Examplegenerated
{ "productId": 1, "externalProductId": "example", "externalVariantId": "example", "externalConnectionId": "example", "connectionId": 1}object
productId
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
Examplegenerated
{ "productId": 1, "externalProductId": "example", "externalVariantId": "example", "externalConnectionId": "example", "connectionId": 1}object
productId
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
Examplegenerated
{ "productId": 1, "externalProductId": "example", "externalVariantId": "example", "externalConnectionId": "example", "connectionId": 1}Odpowiedzi
Dział zatytułowany „Odpowiedzi”No Content
Client Error
object
message
string
object
message
string
Examplegenerated
{ "message": "example"}object
message
string
Examplegenerated
{ "message": "example"}Server Error

