Zaktualizuj grupę cenową
PUT
/api/price-groups/v2/product-price-groups/{id}
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/price-groups/v2/product-price-groups/1';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"name":"example","description":"example","currency":"None","type":"None","catalogIds":[1],"bundlePriceCalculationMethod":"Fixed","bundlePriceMultiplier":1,"bundlePriceDiscount":1,"baseGroupData":{"basePriceGroupId":1,"priceMultiplier":1,"addToPrice":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/price-groups/v2/product-price-groups/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "name": "example", "description": "example", "currency": "None", "type": "None", "catalogIds": [ 1 ], "bundlePriceCalculationMethod": "Fixed", "bundlePriceMultiplier": 1, "bundlePriceDiscount": 1, "baseGroupData": { "basePriceGroupId": 1, "priceMultiplier": 1, "addToPrice": 1 } }'Aktualizuje nazwę, walutę lub inne parametry grupy cenowej. Odpowiednik addInventoryPriceGroup (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
wymagane
integer format: int64
name
wymagane
string
description
string
currency
Currency cannot be None
string
type
Price Group cannot be None
string
catalogIds
Array<integer>
bundlePriceCalculationMethod
string
bundlePriceMultiplier
number format: double
bundlePriceDiscount
number format: double
baseGroupData
object
basePriceGroupId
integer format: int64
priceMultiplier
number format: double
addToPrice
number format: double
object
id
wymagane
integer format: int64
name
wymagane
string
description
string
currency
Currency cannot be None
string
type
Price Group cannot be None
string
catalogIds
Array<integer>
bundlePriceCalculationMethod
string
bundlePriceMultiplier
number format: double
bundlePriceDiscount
number format: double
baseGroupData
object
basePriceGroupId
integer format: int64
priceMultiplier
number format: double
addToPrice
number format: double
object
id
wymagane
integer format: int64
name
wymagane
string
description
string
currency
Currency cannot be None
string
type
Price Group cannot be None
string
catalogIds
Array<integer>
bundlePriceCalculationMethod
string
bundlePriceMultiplier
number format: double
bundlePriceDiscount
number format: double
baseGroupData
object
basePriceGroupId
integer format: int64
priceMultiplier
number format: double
addToPrice
number format: double
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success

