INPUT_OBJECT
CreateAsset
link GraphQL Schema definition
1 input CreateAsset { 4 2 # ID of the parent container, a TemporalDataObject, for the new asset 3 ID! : 7 5 # A valid MIME type 6 String : 10 8 # An optional description for the asset 9 String : 13 11 # A file to upload. Use multipart form POST to submit this field. 12 UploadedFile : 16 14 # Optional expected checksum for the file 15 String : 20 17 # The asset type. Either type (deprecated) or assetType must be provided. 18 # See https://support.veritone.com/s/article/000003943 for supported values. 19 String : 23 21 # deprecated - use assetType 22 String : 27 24 # URI to the asset data. Optional -- if a file is provided, the URI 25 # will be computed by the server. 26 String : 30 28 # Optionally, set attributes about the file 29 SetAssetFileData : 33 31 # Optionally, set attributes about the source engine and task 32 SetAssetSourceData : 36 34 # Application- or type-specific metadata 35 JSONData : 39 37 # File or other name 38 String : 42 40 # Deprecated. Set `fileData`, `sourceData`, or `details` instead. 41 JSONData : 47 43 # if true, sets the new asset to be the primary asset of its type. 44 # Only certain asset types, such as "media" and "transcript", 45 # can have primary assets. 46 Boolean : 50 48 # Set to true if this asset was created by editing another asset. 49 Boolean : 54 51 # Set to true if the container stopDateTime needs to be updated by 52 # the duration of the asset 53 Boolean : 59 55 # Set to true if the input asset uri is to be treated as a reference 56 # (owned by third-party). If set to true the source file at uri will 57 # not be deleted when deleting asset. 58 Boolean : 60 }