Skip to main content

Inputs: Assets

GraphQL input types for asset creation, update, deletion, folders, repositories, and publishing in the Amplience GraphQL Management API.

Assets
Link copied!

CreateAssetInput
Link copied!

FieldTypeDefaultDescription
srcStringURL path to the input file, e.g. https://ampproduct.a.bigcontent.io/v1/static/Hero-Banner-720-model2
typeAssetType!Type of media to create
nameString!Name of the asset. This should be a unique name across the account as it will be used when publishing
filenameString!Original filename
assetRepositoryIdID!ID of the assetRepository to create this asset in
labelStringFriendly label for the asset, this is what a customer will see. If not specified this will default to srcName
assetFolderIdIDID of the folder this asset is contained within. Empty ID means it is created in the assetRepository root level
contents[ID!]A list of assetIds included in a set
localeGroupStringName of the localeGroup the asset belongs to. Defaults to asset name
localeStringUUID corresponding to the locale of the asset
workflowAssignedToIDID of the assigned workflow user
workflowStatusWorkflowStatusStatus of the workflow
tags[String!]A list of tags
thumbFileStringThe UUID of an existing file to assign as a thumbnail

CreateUpdateAssetInput
Link copied!

FieldTypeDefaultDescription
srcStringUrl path to the input file, e.g. https://ampproduct.a.bigcontent.io/v1/static/Hero-Banner-720-model2
filenameStringOriginal filename
labelStringFriendly label for the asset, this is what a customer will see
assetFolderIdIDID of the folder this asset is contained within
workflowAssignedToIDID of the assigned workflow user
workflowStatusWorkflowStatusStatus of the workflow
contents[ID!]A list of asset IDs included in a set
localeGroupStringName of the localeGroup the asset should belong to
localeStringLocale of the asset
tags[String!]A list of tags
thumbFileStringThe UUID of an existing file to assign as a thumbnail
nameString!The name of the asset. This should be a unique name across the account as it will be used when publishing
assetRepositoryIdID!ID of the assetRepository
typeAssetTypeType of media to create

UpdateAssetInput
Link copied!

FieldTypeDefaultDescription
srcStringUrl path to the input file, e.g. https://ampproduct.a.bigcontent.io/v1/static/Hero-Banner-720-model2
filenameStringOriginal filename
labelStringFriendly label for the asset, this is what a customer will see
assetFolderIdIDID of the folder this asset is contained within
workflowAssignedToIDID of the assigned workflow user
workflowStatusWorkflowStatusStatus of the workflow
contents[ID!]A list of asset IDs included in a set
localeGroupStringName of the localeGroup the asset should belong to
localeStringLocale of the asset
tags[String!]A list of tags
thumbFileStringThe UUID of an existing file to assign as a thumbnail
idID!ID of the asset
nameStringThe name of the asset. This should be a unique name across the account as it will be used when publishing
assetRepositoryIdIDID of the assetRepository

UpdateAssetMetadataInput
Link copied!

Asset field filtering

FieldTypeDefaultDescription
idID!ID of the asset
metadataSchemaNameString!The name of the metadata schema
relationshipNameStringThe explicit name of the relationship to add. We will try to infer the relationship if this is not provided.
metadataJSON!Metadata properties to update as key/value pairs. Must be valid for the specified metadata schema

DeleteAssetInput
Link copied!

FieldTypeDefaultDescription
idIDID of the asset to delete
assetIdStringUUID of the asset to delete

DeleteAssetsInput
Link copied!

FieldTypeDefaultDescription
id[ID!]ID of the assets
assetId[String!]UUID of the assets

FilterFields
Link copied!

Asset field filtering

FieldTypeDefaultDescription
tags[String!]Tags that have been assigned to the asset
tagsCaseSensitive[String!]Tags that have been assigned to the asset - case sensitive
mimeType[String!]Mimetype file descriptors
statusAssetStatusActive status
lastPublishStatusAssetPublishStatusLast publish status
lastSuccessfulPublishStatusAssetPublishStatusLast successful publish status
assetRepositoryId[ID!]IDs of the repositories
assetFolderId[ID!]IDs of the folders
localeStringLocale (IETF language tag)
localeGroupStringLocale group name
typeAssetTypeType of asset
subTypeStringSub type of asset
workflowAssignedByStringAssigned by
workflowAssignedToStringAssigned to
createdDateDateRangeCreation date
updatedDateDateRangeLast update date
publishedBooleanPublished status
lastPublishDateDateRangeLast publish date
lastSuccessfulPublishDateDateRangeLast successful publish date

SortableFields
Link copied!

Asset field sorting priority

FieldTypeDefaultDescription
idSortDirectionID
nameSortDirectionName
labelSortDirectionLabel
tagsSortDirectionTags
mimeTypeSortDirectionMimetype
createdDateSortDirectionCreated date
updatedDateSortDirectionUpdated date
publishedSortDirectionPublished date
lastPublishDateSortDirectionLast published date
lastPublishStatusSortDirectionLast published status
lastSuccessfulPublishDateSortDirectionLast successful publish date
lastSuccessfulPublishStatusSortDirectionLast successful publish status
localeSortDirectionLocale

RestoreAssetsInput
Link copied!

FieldTypeDefaultDescription
id[ID!]ID of the assets
assetId[String!]UUID of the assets

Publishing
Link copied!

PublishAssetInput
Link copied!

FieldTypeDefaultDescription
idID!ID of the asset to publish
jobId[String!]The IDs of the jobs to wait for

UnpublishAssetInput
Link copied!

FieldTypeDefaultDescription
idID!ID of the asset to unpublish

UnpublishAssetsInput
Link copied!

FieldTypeDefaultDescription
id[ID!]ID of the assets
assetId[String!]UUID of the assets

Folders & repositories
Link copied!

CreateFolderInput
Link copied!

FieldTypeDefaultDescription
labelString!The label of the folder.
parentIdIDThe folder ID of the parent folder. The new folder will be created under the provided parent.
assetRepositoryIdIDThe asset repository ID. If not provided we will create the folder in the default asset repository.

CreateAssetRepositoryInput
Link copied!

FieldTypeDefaultDescription
labelString!The name of the new asset repository, used when referencing it from Dynamic Media.

UpdateAssetRepositoryInput
Link copied!

FieldTypeDefaultDescription
idID!The ID of the asset repository to update
labelString!The name of the asset repository, used when referencing it from Dynamic Media.

DeleteAssetRepositoryInput
Link copied!

FieldTypeDefaultDescription
idID!The ID of the asset repository to delete