Zaktualizuj domyślne ustawienia ofert
PUT
/api/DefaultSettings/UpdateDefaultSettings
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/DefaultSettings/UpdateDefaultSettings';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expandParameters":true,"showOnlyRequiredParameters":true,"galleryOrderType":"ConsistentWithPim","galleryQuantityType":"OnlyFirst","includeBreaksInGallery":true,"useDescriptionFromPimWhenReactivating":true,"usePhotoFromPimWhenReactivating":true,"usePriceFromPimWhenReactivating":true,"useCurrentShippingRateWhenReactivating":true,"updateWarrantyComplaintAndReturnOptionsWhenReactivating":true,"useTitleFromPimWhenReactivating":true,"offerNameTemplate":"example","useOfferEanAndSku":true,"useImagesFromMainProductInVariant":true,"useDescriptionFromMainProductInVariant":true,"useFullVariantName":true,"useMainCategoryInVariants":true,"useVariantPropertiesInParameterRules":true,"offerPropertyMappings":[{"offerPropertyName":"example","complexFieldName":"example"}],"importFromOfferHistory":true,"matchOfferHistoryByEan":true,"matchOfferHistoryBySku":true,"maxAllowedScheduledImport":1,"dailyUpdateOfferParametersInPimEnabled":true,"useManufacturerFromMainProduct":true}'};
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-sales-offers-allegro-api.enterprise.sellrocket.pl/api/DefaultSettings/UpdateDefaultSettings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expandParameters": true, "showOnlyRequiredParameters": true, "galleryOrderType": "ConsistentWithPim", "galleryQuantityType": "OnlyFirst", "includeBreaksInGallery": true, "useDescriptionFromPimWhenReactivating": true, "usePhotoFromPimWhenReactivating": true, "usePriceFromPimWhenReactivating": true, "useCurrentShippingRateWhenReactivating": true, "updateWarrantyComplaintAndReturnOptionsWhenReactivating": true, "useTitleFromPimWhenReactivating": true, "offerNameTemplate": "example", "useOfferEanAndSku": true, "useImagesFromMainProductInVariant": true, "useDescriptionFromMainProductInVariant": true, "useFullVariantName": true, "useMainCategoryInVariants": true, "useVariantPropertiesInParameterRules": true, "offerPropertyMappings": [ { "offerPropertyName": "example", "complexFieldName": "example" } ], "importFromOfferHistory": true, "matchOfferHistoryByEan": true, "matchOfferHistoryBySku": true, "maxAllowedScheduledImport": 1, "dailyUpdateOfferParametersInPimEnabled": true, "useManufacturerFromMainProduct": true }'Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
expandParameters
wymagane
boolean
showOnlyRequiredParameters
wymagane
boolean
galleryOrderType
wymagane
string
galleryQuantityType
wymagane
string
includeBreaksInGallery
wymagane
boolean
useDescriptionFromPimWhenReactivating
wymagane
boolean
usePhotoFromPimWhenReactivating
wymagane
boolean
usePriceFromPimWhenReactivating
wymagane
boolean
useCurrentShippingRateWhenReactivating
wymagane
boolean
updateWarrantyComplaintAndReturnOptionsWhenReactivating
wymagane
boolean
useTitleFromPimWhenReactivating
wymagane
boolean
offerNameTemplate
wymagane
string
useOfferEanAndSku
wymagane
boolean
useImagesFromMainProductInVariant
wymagane
boolean
useDescriptionFromMainProductInVariant
wymagane
boolean
useFullVariantName
wymagane
boolean
useMainCategoryInVariants
wymagane
boolean
useVariantPropertiesInParameterRules
wymagane
boolean
offerPropertyMappings
wymagane
Array<object>
object
offerPropertyName
wymagane
string
complexFieldName
string
importFromOfferHistory
wymagane
boolean
matchOfferHistoryByEan
wymagane
boolean
matchOfferHistoryBySku
wymagane
boolean
maxAllowedScheduledImport
wymagane
integer format: int32
dailyUpdateOfferParametersInPimEnabled
wymagane
boolean
useManufacturerFromMainProduct
wymagane
boolean
object
expandParameters
wymagane
boolean
showOnlyRequiredParameters
wymagane
boolean
galleryOrderType
wymagane
string
galleryQuantityType
wymagane
string
includeBreaksInGallery
wymagane
boolean
useDescriptionFromPimWhenReactivating
wymagane
boolean
usePhotoFromPimWhenReactivating
wymagane
boolean
usePriceFromPimWhenReactivating
wymagane
boolean
useCurrentShippingRateWhenReactivating
wymagane
boolean
updateWarrantyComplaintAndReturnOptionsWhenReactivating
wymagane
boolean
useTitleFromPimWhenReactivating
wymagane
boolean
offerNameTemplate
wymagane
string
useOfferEanAndSku
wymagane
boolean
useImagesFromMainProductInVariant
wymagane
boolean
useDescriptionFromMainProductInVariant
wymagane
boolean
useFullVariantName
wymagane
boolean
useMainCategoryInVariants
wymagane
boolean
useVariantPropertiesInParameterRules
wymagane
boolean
offerPropertyMappings
wymagane
Array<object>
object
offerPropertyName
wymagane
string
complexFieldName
string
importFromOfferHistory
wymagane
boolean
matchOfferHistoryByEan
wymagane
boolean
matchOfferHistoryBySku
wymagane
boolean
maxAllowedScheduledImport
wymagane
integer format: int32
dailyUpdateOfferParametersInPimEnabled
wymagane
boolean
useManufacturerFromMainProduct
wymagane
boolean
object
expandParameters
wymagane
boolean
showOnlyRequiredParameters
wymagane
boolean
galleryOrderType
wymagane
string
galleryQuantityType
wymagane
string
includeBreaksInGallery
wymagane
boolean
useDescriptionFromPimWhenReactivating
wymagane
boolean
usePhotoFromPimWhenReactivating
wymagane
boolean
usePriceFromPimWhenReactivating
wymagane
boolean
useCurrentShippingRateWhenReactivating
wymagane
boolean
updateWarrantyComplaintAndReturnOptionsWhenReactivating
wymagane
boolean
useTitleFromPimWhenReactivating
wymagane
boolean
offerNameTemplate
wymagane
string
useOfferEanAndSku
wymagane
boolean
useImagesFromMainProductInVariant
wymagane
boolean
useDescriptionFromMainProductInVariant
wymagane
boolean
useFullVariantName
wymagane
boolean
useMainCategoryInVariants
wymagane
boolean
useVariantPropertiesInParameterRules
wymagane
boolean
offerPropertyMappings
wymagane
Array<object>
object
offerPropertyName
wymagane
string
complexFieldName
string
importFromOfferHistory
wymagane
boolean
matchOfferHistoryByEan
wymagane
boolean
matchOfferHistoryBySku
wymagane
boolean
maxAllowedScheduledImport
wymagane
integer format: int32
dailyUpdateOfferParametersInPimEnabled
wymagane
boolean
useManufacturerFromMainProduct
wymagane
boolean
Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
boolean
boolean
Examplegenerated
trueboolean
Examplegenerated
true
