Logo of FrontifyDeveloper portalArrow to the right
GraphQL reference
Mutation

createAssetVariant():CreateAssetVariant

Create a new AssetVariant. Only supported for assets in icon and logo libraries. Requires basic:write scope to be accessible and Asset permission level EDIT.

All mutations have exactly one input field called input with a unique input and return type. This is useful to write mutations with variables, so there is always one single variable per mutation. This makes it easier to use and reuse them.

Input fields of CreateAssetVariantInput
fileId: ID!

File Id. Signed Id returned in uploadFile.

assetId: ID!

Asset Id. Currently, only Assets from Logo and Icon Library type are supported.

key: String!

AssetVariant key composed of the color space and the file extension. Examples: RGB:JPG, CMYK:SVG

Fields of CreateAssetVariant

The newly created AssetVariant processing job response.