Skip to main content

digitalContentCreate Mutation

DEPRECATED

Support for Digital Content is deprecated and will be removed in Saleor v3.23.0. This functionality is legacy and undocumented, and is not part of the supported API. Users should not rely on this behavior.

Create new digital content. This mutation must be sent as a multipart request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec

Requires the MANAGE_PRODUCTSpermission.
digitalContentCreate(
input: DigitalContentUploadInput!
variantId: ID!
): DigitalContentCreate @deprecated
Show return type

Arguments

input ● DigitalContentUploadInput!

Fields required to create a digital content.

variantId ● ID!

ID of a product variant to upload digital content.

Type

DigitalContentCreate

Create new digital content. This mutation must be sent as a multipart request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec

Requires the MANAGE_PRODUCTSpermission.