Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 2.21 KB

CreateAssetRequest.md

File metadata and controls

25 lines (18 loc) · 2.21 KB

CreateAssetRequest

Properties

Name Type Description Notes
type inline Must be `file` if `is_realtime_upload` is `true`.
name kotlin.String The name the asset should have in Frame.io. This value does not have to match the name of the file on disk; it can be whatever you want it to be in Frame.io. Required if `is_realtime_upload` is `false`. If `is_realtime_upload` is `true`, must containa valid extension in the form of `".[ext]"`, unless `extension` is provided, in which case this field may be `null` or omitted. [optional]
extension kotlin.String Required when `is_realtime_upload` is `true`, when `name` is not known at time of asset creation. If `name` is provided, must match extension of that value. Ignored when `is_realtime_upload` is `false`. When supplied, asset will be creted with `name` value of `"[new file].extension"`. [optional]
filetype kotlin.String MIME type like `video/quicktime`. Many languages have built in utilities for detecting file mimetype (see Go and Python for examples). Required if `is_realtime_upload` is `true`. [optional]
isRealtimeUpload kotlin.Boolean If `true`, File data for this asset is to be uploaded through the Real-time Uploads API. If `false`, File data for this asset will be uploaded through the default API. Must be `false` if `filetype` is not `file`. [optional]
description kotlin.String Brief description of the Asset [optional]
filesize kotlin.Int File size in bytes. Required if `is_realtime_upload` is not `true`. [optional]
properties kotlin.String Custom key-value data [optional]
source AssetSource [optional]

Enum: type

Name Value
type file, folder