Fully updating a site
PUT {{baseUrl}}/site/:tenant/sites/:siteCode?expand=payment:all,shipping:active,tax:none
Fully updates a specified site's configuration.
You can also use this endpoint to update the configuration of the following services:
* payment
* shipping
* tax
Note: To update an inactive service configuration, you need to use the expand
query parameter.
Required scopes
site.site_manage
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
expand | string | Used to expand the following site settings: |
payment
shipping
tax
Each of the settings can be set to one of the following values:all
active
none
|
Request Body
{"Request example"=>{"value"=>{"code"=>"example", "name"=>"Example Site", "active"=>true, "defaultLanguage"=>"en", "languages"=>["en"], "currency"=>"EUR", "homeBase"=>{"address"=>{"zipCode"=>"unknown", "country"=>"DE"}}, "shipToCountries"=>["DE"], "shipping"=>[{"id"=>"default", "serviceType"=>"urn:x-yaas:service:shipping", "serviceUrl"=>"https://saas-ag-prod.apigee.net/caas-shipping", "active"=>true}], "payment"=>[{"id"=>"stripe", "name"=>"Stripe Payment Service", "serviceType"=>"urn:x-yaas:service:payment", "serviceUrl"=>"http://iban-validator", "active"=>true}], "default"=>false}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
""