Upgrade current version

post

/ccadmin/v1/jsframeworkadmin/upgradeVersion

Upgrades the current storefront JavaScript framework to the latest version for all active sites.

It takes an optional query parameter of siteId. If you include this parameter, only the site that you have specified by siteId will be upgraded. This endpoint is useful if you are running multiple sites. For more information about multisite environments, please view the multisite documentation.

This endpoint only is applicable if a newer version exists. In order to determine the current storefront framework status, the Retrieve Current Version endpoint should be used.

Note: This endpoint is not supported for use in the Open Storefront Framework.

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : upgradeCurrentVersion_response
Type: object
Show Source
Example Response (application/json)
{
    "storefrontVersion":"17.1",
    "success":true,
    "previousVersion":"16.6",
    "UpgradeMessage":"SiteUs already in latest Version.",
    "links":[
        {
            "rel":"self",
            "href":"jsframeworkadmin/upgradeVersion"
        }
    ],
    "currentVersion":"17.1"
}

Default Response

The following internal error codes are thrown by this API when the request fails in Commerce:
Error CodeDescriptionPossible Fix
30102Unable to upgrade.See returned error messages for more information.
30105Site not found.Ensure you specify a valid site ID.

The error response:
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top