Zaktualizuj kategorię
PUT
/api/categories/v2/categories/{id}
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/categories/v2/categories/1';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"name":"example","parentId":1,"catalogId":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/categories/v2/categories/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "name": "example", "parentId": 1, "catalogId": 1 }'Aktualizuje nazwę, kategorię nadrzędną lub przypisanie kategorii do katalogów. Odpowiednik addInventoryCategory (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
integer format: int64
name
wymagane
string
parentId
integer format: int64
catalogId
integer format: int64
Examplegenerated
{ "id": 1, "name": "example", "parentId": 1, "catalogId": 1}object
id
integer format: int64
name
wymagane
string
parentId
integer format: int64
catalogId
integer format: int64
Examplegenerated
{ "id": 1, "name": "example", "parentId": 1, "catalogId": 1}object
id
integer format: int64
name
wymagane
string
parentId
integer format: int64
catalogId
integer format: int64
Examplegenerated
{ "id": 1, "name": "example", "parentId": 1, "catalogId": 1}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success

