Update a site
You can use the updateSite
endpoint to modify settings on an existing site.
For example:
PUT /ccadmin/v1/sites/100002 HTTP/1.1
Authorization: Bearer <access_token>
x-ccasset-language: en
{
"properties":
{
"productionURL": "www.example7.com",
"defaultLocaleId": "3"
}
}
The response is similar to the following:
{
"longDescription": null,
"priceListGroupList": [
{
"deleted": false,
"repositoryId": "defaultPriceGroup",
"active": true,
"id": "defaultPriceGroup"
}
],
"productionURL": "www.example7.com",
"timezone": "etc_utc",
"description": null,
"secondaryCurrency": null,
"defaultCatalog": {
"displayName": "Product Catalog",
"repositoryId": "cloudCatalog",
"id": "cloudCatalog"
},
"requireGDPRP13nConsent": false,
"type": "siteConfiguration",
"defaultBillingCountryId": null,
"defaultShippingCountryId": null,
"enabled": false,
"requireGDPRCookieConsent": false,
"payTaxInSecondaryCurrency": false,
"timeToLive": null,
"defaultLocaleId": "3",
"activeTheme": null,
"loyaltyPrograms": [
],
"paymentOption": "0",
"additionalProductionURLs": [
],
"links": [
{
"rel": "self",
"href": "http://myserver.example.com:7002/ccadmin/v1/sites/100002"
}
],
"id": "100002",
"defaultSite": false,
"additionalLocaleIds": [
],
"recommendationsHost": "pt-recs-app1.us.example.com",
"favicon": null,
"allowedOriginMethods": {
},
"noimage": null,
"defaultPriceListGroup": {
"deleted": false,
"repositoryId": "defaultPriceGroup",
"active": true,
"id": "defaultPriceGroup"
},
"payShippingInSecondaryCurrency": false,
"siteTypes": [
"commerce"
],
"recommendationsPort": "8080",
"shipFromAddress": {
},
"repositoryId": "100002",
"name": "100002"
}