Przejdź do głównej zawartości

Utwórz kategorię

POST
/api/categories/v2/categories
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.

object
id
integer format: int64
nullable
name
wymagane
string
nullable
parentId
integer format: int64
nullable
catalogId
integer format: int64
nullable
Examplegenerated
{
"id": 1,
"name": "example",
"parentId": 1,
"catalogId": 1
}

Success

integer format: int64