Web Assets

Download asset file

Changed on

Download the binary content of an asset file by path, language and version

post/api/v1/assets/_download

Request

Request body

assetPathstring required

Full path to the asset (file or folder) including site and folder structure. Folders must end-up with /

languagestring

Language identifier for the asset. Uses system default language if not specified

liveboolean

Whether to retrieve the live version (true) or working version (false) of the asset

Example request

{
  "assetPath": "//demo.dotcms.com/application/containers/default/banner.vtl",
  "language": "en-US"
}

Response

Asset file download started successfully

Changes

    • breaking

      request body became required

    • breaking

      removed the media type */* from the request body

    • info

      added the media type application/json to the request body

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status