Przejdź do głównej zawartości

Zaktualizuj katalog

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

Aktualizuje ustawienia katalogu, m.in. nazwę, języki, grupy cenowe i magazyny. Odpowiednik addInventory (edycja) w BaseLinker.

id
wymagane
integer format: int64
object
id
wymagane
integer format: int64
name
wymagane
string
nullable
description
string
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",
"defaultPriceGroupId": 1,
"defaultWarehouseId": 1,
"languages": [
"example"
],
"defaultLanguage": "example",
"priceGroupIds": [
1
],
"warehousesIds": [
1
]
}

Success