File Assets
Get raw file-asset content by path
Changed onStreams the raw bytes of a file asset addressed by a host-qualified path (//hostname/path/file.ext). Returns the working version by default; use version=live for the published version. Responds with 404 when the asset or language version does not exist, 400 when the path points at a folder.
get/api/v2/assets
Request
- Base URLhttps://docs.anzworldline-solutions.com.au
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pathstring required
Host-qualified asset path, e.g. //demo.dotcms.com/application/foo.vtl
languagestring
Language tag (e.g. en-US). Defaults to site default language.
version'working' | 'live'
Asset version to retrieve. Accepted values: working (default), live.
Response
Raw file bytes streamed with resolved MIME type and Content-Disposition header
Changes
- info
endpoint added
- info