Przejdź do głównej zawartości

Dodaj lub zmień regułę parametru

PUT
/api/ParameterRules/AddOrUpdateRule
curl --request PUT \
--url https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/ParameterRules/AddOrUpdateRule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "existingRuleId": 1, "catalogId": "example", "ruleType": "CopyFromWarehouseParameter", "ruleContent": "example", "conditionType": "Always", "conditionContent": "example", "conditionParameterName": "example", "parameterName": "example", "unit": "example", "valueSourceType": "SetValue", "parameterRulesMap": [ { "warehouseValue": "example", "allegroValue": "example" } ] }'

Reguły określają, jak wartości parametrów ofert Allegro są wyliczane z danych produktu.

object
existingRuleId
integer format: int64
nullable
catalogId
wymagane
string
ruleType
wymagane
string
Dozwolone wartości: CopyFromWarehouseParameter CopyFromWarehouseField SetValue InsertAuctionName InsertWarehouseProductName InsertVariantName InsertManufacturerName InsertEan InsertSku InsertWeight SetShippingRates SetAuctionTemplate SetPersonResponsible SetProducerResponsible CopyFromExtraField
ruleContent
wymagane
string
conditionType
wymagane
string
Dozwolone wartości: Always CategoryInWarehouseReference Manufacturer ProductNameContains VariantNameContains ProductDescriptionContains SkuContains SkuBeginsWith SkuEndsWith ParameterContains ParameterNotContains ParameterEqual ParameterNotEqual ParameterGreaterThan ParameterLessThan ParameterGreaterThanOrEqual ParameterLessThanOrEqual ParameterEmpty ParameterNotEmpty
conditionContent
wymagane
string
conditionParameterName
string
nullable
parameterName
string
nullable
unit
string
nullable
valueSourceType
string
Dozwolone wartości: SetValue CopyFromWarehouseParameter CopyFromWarehouseField
parameterRulesMap
Array<object>
nullable
object
warehouseValue
wymagane
string
allegroValue
wymagane
string

OK

Bad Request

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties