Przejdź do głównej zawartości

Utwórz katalog produktów

POST
/api/catalogs/v2/products-catalogs
curl --request POST \
--url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/catalogs/v2/products-catalogs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "id": 1, "name": "example", "description": "example", "reservations": true, "defaultPriceGroupId": 1, "defaultWarehouseId": 1, "languages": [ "example" ], "defaultLanguage": "example", "priceGroupIds": [ 1 ], "warehousesIds": [ 1 ] }'

Tworzy nowy katalog produktów. Odpowiednik addInventory w BaseLinker.

object
id
integer format: int64
nullable
name
wymagane
string
nullable
description
string
nullable
reservations
boolean
nullable
defaultPriceGroupId
wymagane
integer format: int64
defaultWarehouseId
integer format: int64
nullable
languages
wymagane
Array<string>
nullable
defaultLanguage
wymagane
string
nullable
priceGroupIds
Array<integer>
nullable
warehousesIds
Array<integer>
nullable
Examplegenerated
{
"id": 1,
"name": "example",
"description": "example",
"reservations": true,
"defaultPriceGroupId": 1,
"defaultWarehouseId": 1,
"languages": [
"example"
],
"defaultLanguage": "example",
"priceGroupIds": [
1
],
"warehousesIds": [
1
]
}

Success