Utwórz kategorię
POST
/api/categories/v2/categories
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/categories/v2/categories';const options = { method: 'POST', 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 POST \ --url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/categories/v2/categories \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "name": "example", "parentId": 1, "catalogId": 1 }'Dodaje nową kategorię produktów. Odpowiednik addInventoryCategory w BaseLinker.
Autoryzacja
Dział zatytułowany „Autoryzacja”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
integer format: int64
integer format: int64
Examplegenerated
1integer format: int64
Examplegenerated
1
