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
19
17# Optional expected SHA-256 checksum for the file
18sha256: 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.
22assetType: String
26
24# deprecated - use assetType
25type: String
30
27# URI to the asset data. Optional -- if a file is provided, the URI
28# will be computed by the server.
29uri: String
33
31# Optionally, set attributes about the file
32fileData: SetAssetFileData
36
34# Optionally, set attributes about the source engine and task
35sourceData: SetAssetSourceData
39
37# Application- or type-specific metadata
38details: JSONData
42
40# File or other name
41name: String
45
43# Deprecated. Set `fileData`, `sourceData`, or `details` instead.
44jsondata: 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.
49setAsPrimary: Boolean
53
51# Set to true if this asset was created by editing another asset.
52isUserEdited: Boolean
57
54# Set to true if the container stopDateTime needs to be updated by
55# the duration of the asset
56updateContainerStopDateTime: 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.
61storeAsReference: Boolean
63}