downloadSelectedAssets

post

/ccadmin/v1/clientApplications/{application}/assets

Download Selected Assets of application as zip

Request

Supported Media Types
Path Parameters
Query Parameters
  • Set to true to view published/live assets, set to false to view unpublished/preview assets
Body ()
Root Schema : download_selected_assets_request
Type: object
Show Source
  • components
    The directory based asset type named components containing directory name and array of files names inside the component directory to be downloaded
  • containers
    The file based asset type named containers containing array of container file names to be downloaded
  • pages
    The file based asset type named containers containing array of page file names to be downloaded
  • slots
    The directory based asset type named slots containing directory name and array of files names inside the slot directory to be downloaded
  • styles
    The file based asset type named containers containing array of styles to be downloaded
Example:
{
    "slots":{
        "header-with-notification-device-slot":[
        ],
        "dynamic-product-listing-for-search-device-slot":[
            "structure.json"
        ],
        "checkout-header-with-notification-device-slot":[
            "config.json"
        ]
    },
    "components":{
        "account-type-selector":[
        ],
        "account-type-selector-responsive":[
            "layout.json"
        ],
        "checkout-back-to-previous-button":[
            "index.json"
        ],
        "add-items-to-cart":[
            "resources.json"
        ],
        "back-button":[
            "config.json"
        ],
        "country-store-language-currency-desktop":[
        ]
    },
    "pages":[
        "checkout-login.json",
        "429.json",
        "checkout-order-confirmation.json",
        "checkout-shipping.json",
        "update-expired-password.json"
    ],
    "containers":[
        "cart-container.json",
        "dynamic-product-listing-desktop.json",
        "profile-update-password-container.json"
    ],
    "styles":[
        "customStylingRed.css",
        "customStylingBrown.css",
        "customStylingBlack.css"
    ]
}
Nested Schema : components
Type: object
The directory based asset type named components containing directory name and array of files names inside the component directory to be downloaded
Nested Schema : containers
Type: array
The file based asset type named containers containing array of container file names to be downloaded
Show Source
Nested Schema : pages
Type: array
The file based asset type named containers containing array of page file names to be downloaded
Show Source
Nested Schema : slots
Type: object
The directory based asset type named slots containing directory name and array of files names inside the slot directory to be downloaded
Show Source
Nested Schema : styles
Type: array
The file based asset type named containers containing array of styles to be downloaded
Show Source
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Back to Top

Response

Supported Media Types

200 Response

a zip file containing all the requested assets of the application gets downloaded

400 Response

Following model is returned when operation fails. See individual error codes for details; 212001 - JSON Object Passed is an empty or null
Body ()
Root Schema : downloadSelectedAssets_badRequest
Type: object
Show Source
  • Default Value: 212001/212002/212003/212004/212005/212006/212007
    The numerical code identifying the error.
  • Default Value: 212001 - empty or null json passed/ 212002 - Invalid assetType found in JSON payload/ 212003 - The asset value passed for asset type is invalid/ 212004 - Invalid directory name, it is not String/ 212005 - Invalid Asset Type found for Directory based asset/ 212006 - Invalid File Name Exits for Directory/ 212007 - File name Null or empty provided for File Based Asset Type
    The localized message describing the error
  • Default Value: 400
    The HTTP status code

404 Response

Following model is returned when operation fails. See individual error codes for details; 212001 - empty or null json passed. 212002 - Invalid assetType {assetType} found in JSON payload.Please input at least one of the valid asset types: {validAssetTypesList}. 212003 - The asset value passed for asset type {nameOfAssetType} is invalid. For file-based assets like {fileBasedAssetsList}, please pass a JSON array. For directory-based assets like {directoryBasedAssetsList}, please pass a JSON object. 212004 - Invalid directory name {directoryName} is not String. Please provide directory as String. 212005 - Invalid Asset Type found for Directory based asset {assetName}. 212006 - Invalid File Name {fileName} Exits for Directory {directoryName}. Please provide valid Files names from {validFileNames}. 212007 - File name Null or empty provided for File Based Asset Type {assetName}.
Body ()
Root Schema : getClientApplication_failureResponse
Type: object
Show Source

Default Response

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