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 19 17 # Optional expected SHA-256 checksum for the file 18 : String 23 20 # The asset type. Either type (deprecated) or assetType must be provided. 21 # See https://support.veritone.com/s/article/000003943 for supported values. 22 : String 26 24 # deprecated - use assetType 25 : String 30 27 # URI to the asset data. Optional -- if a file is provided, the URI 28 # will be computed by the server. 29 : String 33 31 # Optionally, set attributes about the file 32 : SetAssetFileData 36 34 # Optionally, set attributes about the source engine and task 35 : SetAssetSourceData 39 37 # Application- or type-specific metadata 38 : JSONData 42 40 # File or other name 41 : String 45 43 # Deprecated. Set `fileData`, `sourceData`, or `details` instead. 44 : JSONData 50 46 # if true, sets the new asset to be the primary asset of its type. 47 # Only certain asset types, such as "media" and "transcript", 48 # can have primary assets. 49 : Boolean 53 51 # Set to true if this asset was created by editing another asset. 52 : Boolean 57 54 # Set to true if the container stopDateTime needs to be updated by 55 # the duration of the asset 56 : Boolean 62 58 # Set to true if the input asset uri is to be treated as a reference 59 # (owned by third-party). If set to true the source file at uri will 60 # not be deleted when deleting asset. 61 : Boolean 63 }