updateASASettings
put
/ccadmin/v1/merchant/assistedSellingSettings
Update ASASettings. Updates Assisted Selling Settings. **Requires the x-ccasset-language header so translated content can be set for a specific language.**
Request
Supported Media Types
- application/json
Header Parameters
- X-CCAsset-Language
-
Type:
stringRequired:trueThe asset language of the request
Body Parameter
Root Schema : updateASASettings_request
{
"backgroundImagePath":"/general/sample_background.jpg",
"dashboardPromotionalText":"ASA Promo Text",
"isInternalCustomPropertiesDisplayEnabled":true,
"isExternalCustomPropertiesDisplayEnabled":false,
"companyLogoPath":"/general/sample_logo.jpg",
"collectionForFeaturedProductsId":"cat40015",
"heroImagePath":"/general/sample_hero.jpg"
}
- backgroundImagePath
-
Type:
stringthe relative path of the background image. - collectionForFeaturedProductsId
-
Type:
stringcategoryId of the parent category of featured products. - companyLogoPath
-
Type:
stringthe relative path of the company logo image. - dashboardPromotionalText
-
Type:
stringthe dashboard promotional text depending on the locale. - heroImagePath
-
Type:
stringthe relative path of the hero image. - isExternalCustomPropertiesDisplayEnabled
-
Type:
booleanIndicates if all the External properties needs to be displayed in ASA application. - isInternalCustomPropertiesDisplayEnabled
-
Type:
booleanIndicates if all the Internal properties needs to be displayed in ASA application.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateASASettings_response
- dashboardSettings
-
Type:
objectdashboardSettingsAdditional Properties Allowed:ASA Dashboard Settings - settings
-
Type:
objectsettingsAdditional Properties Allowed:ASA Settings
Nested Schema : dashboardSettings
Type:
objectASA Dashboard Settings
- collectionForFeaturedProductsId
-
Type:
stringcategoryId for collection for featured products. - dashboardPromotionalText
-
Type:
stringthe dashboard promotional text depending on the locale. - heroImage
-
Type:
objectheroImageAdditional Properties Allowed:Hero Image Path and URL
Nested Schema : settings
Type:
objectASA Settings
- backgroundImage
-
Type:
objectbackgroundImageAdditional Properties Allowed:Background Image Path and URL - companyLogo
-
Type:
objectcompanyLogoAdditional Properties Allowed:Company Logo Image Path and URL - isExternalCustomPropertiesDisplayEnabled
-
Type:
booleanIndicates if the External properties needs to be displayed in ASA application. - isInternalCustomPropertiesDisplayEnabled
-
Type:
booleanIndicates if the Internal properties needs to be displayed in ASA application.
Nested Schema : heroImage
Type:
objectHero Image Path and URL
- path
-
Type:
stringThe relative vfs path of the image. - url
-
Type:
stringThe url of the image.
Nested Schema : backgroundImage
Type:
objectBackground Image Path and URL
- path
-
Type:
stringThe relative vfs path of the image. - url
-
Type:
stringThe url of the image.
Nested Schema : companyLogo
Type:
objectCompany Logo Image Path and URL
- path
-
Type:
stringThe relative vfs path of the image. - url
-
Type:
stringThe url of the image.
Example application/json
{
"settings":{
"companyLogo":{
"path":"/general/companyLogo.jpg",
"url":"http://localhost:9080/file/general/companyLogo.jpg"
},
"backgroundImage":{
"path":"/general/backgroundImage.jpg",
"url":"http://localhost:9080/file/general/backgroundImage.jpg"
}
},
"isInternalCustomPropertiesDisplayEnabled":true,
"isInternalProfilePropertiesDisplayEnabled":true,
"isExternalCustomPropertiesDisplayEnabled":false,
"dashboardSettings":{
"dashboardPromotionalText":"Sample promo Text",
"heroImage":{
"path":"/general/heroImage.jpg",
"url":"http://localhost:9080/file/general/heroImage.jpg"
},
"collectionForFeaturedProductsId":"cat80051"
},
"isExternalProfilePropertiesDisplayEnabled":false
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{
"backgroundImagePath": "/general/sample_background.jpg",
"dashboardPromotionalText": "ASA Promo Text",
"isInternalCustomPropertiesDisplayEnabled": true,
"isExternalCustomPropertiesDisplayEnabled": false,
"companyLogoPath": "/general/sample_logo.jpg",
"collectionForFeaturedProductsId": "cat40015",
"heroImagePath": "/general/sample_hero.jpg"
}
Sample Response Payload returned by endpoint:
{
"settings": {
"companyLogo": {
"path": "/general/companyLogo.jpg",
"url": "http://localhost:9080/file/general/companyLogo.jpg"
},
"backgroundImage": {
"path": "/general/backgroundImage.jpg",
"url": "http://localhost:9080/file/general/backgroundImage.jpg"
}
},
"isInternalCustomPropertiesDisplayEnabled": true,
"isInternalProfilePropertiesDisplayEnabled": true,
"isExternalCustomPropertiesDisplayEnabled": false,
"dashboardSettings": {
"dashboardPromotionalText": "Sample promo Text",
"heroImage": {
"path": "/general/heroImage.jpg",
"url": "http://localhost:9080/file/general/heroImage.jpg"
},
"collectionForFeaturedProductsId": "cat80051"
},
"isExternalProfilePropertiesDisplayEnabled": false
}