CreateAssetInput

Input fields

projectId:IDDeprecated
Library or Workspace Id. This value is ignored if parentId is set.
fileId:ID!
File Id. Signed Id returned in uploadFile.
title:String!
Asset title or display name.
alternativeText:String
Alternative text for the Asset. Used by screen readers when the asset is not decorative.
isDecorative:Boolean
Indicates whether the Asset is decorative and not meant to be read by screen readers. If true, alternative text is ignored.
description:String = ""
Asset description.
externalId:ID
Asset external Id.
copyright:CreateCopyrightInput
Add Asset copyright details.
tags:[TagInput]
List of tags to create with Asset
skipFileMetadata:Boolean = false
Skip file's EXIF metadata. When true, it will ignore all file metadata contents.
directory:[String]
An array of strings representing the directory, if a folder does not exist, it is created. Example: ["My Folder", "Sub-Folder"] will create the necessary folders if they do not yet exist and place the Asset in it. Important: Cannot be used in conjunction with parentId that is from a Folder.
parentId:ID
The parent Id, where the Asset should be located in. Should either be a Library, WorkspaceProject or Folder Id. Important: Cannot be used in conjunction with directory if the Id is from a Folder.
workflowStatus:StringDeprecated
Asset workflow status. Workflow logic will be automatically managed if not properly set.
availability:DateTimeRangeInput
Asset will become available only during the interval.When undefined or null the Asset will be immediately and indefinitely available.
expiresAt:DateTime
Asset will expire once the defined date is reached.
author:String = ""
Represents the Author of the Asset. Example: Photographer Name
previewBackgroundColor:RgbaColorInputBeta
Background color of the Asset preview.