INPUT_OBJECT

CreateAsset

link GraphQL Schema definition

1input CreateAsset {
4
2# ID of the parent container, a TemporalDataObject, for the new asset
3containerId: ID!
7
5# A valid MIME type
6contentType: String
10
8# An optional description for the asset
9description: String
13
11# A file to upload. Use multipart form POST to submit this field.
12file: UploadedFile
16
14# Optional expected checksum for the file
15md5sum: String
20
17# The asset type. Either this or assetType must be provided.
18# See https://docs.veritone.com/#/apis/tutorials/asset-types for supported values.
19assetType: String
23
21# deprecated - use assetType
22type: String
27
24# URI to the asset data. Optional -- if a file is provided, the URI
25# will be computed by the server.
26uri: String
30
28# Optionally, set attributes about the file
29fileData: SetAssetFileData
33
31# Optionally, set attributes about the source engine and task
32sourceData: SetAssetSourceData
36
34# Application- or type-specific metadata
35details: JSONData
39
37# File or other name
38name: String
42
40# Deprecated. Set `fileData`, `sourceData`, or `details` instead.
41jsondata: 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.
46setAsPrimary: Boolean
50
48# Set to true if this asset was created by editing another asset.
49isUserEdited: Boolean
54
51# Set to true if the container stopDateTime needs to be updated by
52# the duration of the asset
53updateContainerStopDateTime: 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.
58storeAsReference: Boolean
60}