C3 AI Documentation Home

C3 AI Console Reference: c3DL

Download the argument object as a file.

Parameters

NameTypeMandatoryDescription
contentType, Type instance, or objectMandatoryThe Type or object to download
contentTypestringOptionalThe media type
filenamestringOptionalThe name of the file to download

Examples

Download the list of smart bulbs persisted in the database:

JavaScript
// Downloads a file named 'smartbulb.json'
c3DL(SmartBulb.fetch(), "application/json", "smartbulb.json")

See also

Was this page helpful?