Rollback current version

post

/ccadmin/v1/jsframeworkadmin/rollbackVersion

Rolls the current storefront JavaScript framework back to the previous version.

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

This endpoint is only applicable if a previous 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 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 : rollbackCurrentVersion_response
Type: object
Show Source
Example Response (application/json)
{
    "storefrontVersion":"17.1",
    "success":true,
    "previousVersion":"16.6",
    "UpgradeMessage":"SiteUs already in previous Version.",
    "currentVersion":"16.6"
}

Default Response

The following internal error codes are thrown by this API when the request fails in Commerce:
Error CodeDescriptionPossible Fix
30101Unable to rollback to the previous version Storefront framework.See returned error messages for more information.
30103, 30106Unable to rollback to previous version.There is no previous version so rollback cannot occur.
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