INPUT_OBJECT

CreateAssetInTDO

link GraphQL Schema definition

1input CreateAssetInTDO {
4
2# A valid MIME type
3contentType: String
7
5# An optional description for the asset
6description: String
11
8# Asset type
9# See https://support.veritone.com/s/article/000003943 for supported values.
10assetType: String!
14
12# URI to the asset data.
13uri: String!
17
15# Optionally, set attributes about the file
16fileData: SetAssetFileData
20
18# Optionally, set attributes about the source engine and task
19sourceData: SetAssetSourceData
23
21# Application- or type-specific metadata
22details: JSONData
26
24# File or other name
25name: String
31
27# If true, sets the new asset to be the primary asset of its type.
28# Only certain asset types, such as "media" and "transcript",
29# can have primary assets.
30setAsPrimary: Boolean
36
32# Set to true if the input asset uri is to be treated as a reference
33# (owned by third-party). If set to true the source file at uri will
34# not be deleted when deleting asset.
35storeAsReference: Boolean
37}