Zaktualizuj producenta
PUT
/api/manufacturers/v2/products-manufacturers/{id}
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/manufacturers/v2/products-manufacturers/1';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"name":"example"}'};
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/manufacturers/v2/products-manufacturers/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "name": "example" }'Aktualizuje dane producenta. Odpowiednik addInventoryManufacturer (edycja) w BaseLinker.
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
id
wymagane
integer format: int64
name
wymagane
string
Examplegenerated
{ "id": 1, "name": "example"}object
id
wymagane
integer format: int64
name
wymagane
string
Examplegenerated
{ "id": 1, "name": "example"}object
id
wymagane
integer format: int64
name
wymagane
string
Examplegenerated
{ "id": 1, "name": "example"}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
integer format: int64
integer format: int64
Examplegenerated
1integer format: int64
Examplegenerated
1
