Upgrade Agent current version

post

/ccadmin/v1/jsframeworkadmin/upgradeAgentVersion

Upgrades the current Agent storefront JavaScript framework to the latest version in order to make use of features from the newest release.

In order for this upgrade to take effect, you must publish said change after calling the endpoint.

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

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

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : upgradeAgentCurrentVersion_200_response
Type: object
Show Source
Example Response (application/json)
{
    "currentAgentVersion":"20.2.4",
    "lastAgentUpdate":"2020-05-21T10:56:31.349Z",
    "previousAgentVersion":"20.2.3",
    "success":true,
    "agentVersion":"20.2.4",
    "overrideAgentVersion":"",
    "links":[
        {
            "rel":"self",
            "href":"ccadminui/v1/jsframeworkadmin/upgradeAgentVersion"
        }
    ]
}

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.
30105Site not found.Ensure you specify a valid site ID.
96028Failed to upgrade agent version.Ensure there is a valid existing version.

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