Skip to main content

CreateProductInput

This input is used to create a new product. The product is a single item or a total look item.

input CreateProductInput {
name: String!
brandId: ID
brandDisplayName: String
private: Boolean
category: String!
type: ProductType!
price: Float
length: ProductLength
fitOption: FitOption
garmentPlacement: GarmentPlacement
sleeveLength: SleeveLength
externalId: String
externalUrl: String
}

Fields​

CreateProductInput.name ● String! non-null scalar​

Name is a required field. It is a string representation of the name of the product. You can use real product names from your catalog or use your imagination. E.g. 'Jacquard knitted cardigan', 'Slim fit jeans', 'Cotton t-shirt'.

CreateProductInput.brandId ● ID scalar​

Brand ID is a required field. You need to use your brand's ID to create a product. You have to receive this ID from GENERA team. E.g. '5f4f3b4c-7b3b-4b3b-8b3b-3b3b3b3b3b3b'.

CreateProductInput.brandDisplayName ● String scalar​

That field represents brand name if product is created for the member.

CreateProductInput.private ● Boolean scalar​

That field defines if product will be visible in the list of all products.

CreateProductInput.category ● String! non-null scalar​

Product category. Can be any non-empty string. E.g. 'Cardigan', 'Jeans', 'T-shirt'.

CreateProductInput.type ● ProductType! non-null enum​

Type is a crucial and required field for generation process. It defines the type of the product. E.g. 'TOP', 'BOTTOM'.

CreateProductInput.price ● Float scalar​

Optional field that represents the real price of the product. In USD, e.g. 49.99.

CreateProductInput.length ● ProductLength enum​

Optional field that represents the length of the product. It's is preferable to have that field set for your product because it helps to improve try on quality.

CreateProductInput.fitOption ● FitOption enum​

Optional field that represents how product should fit on the body. It helps our algorithm to generate better try on results with desired product fit.

CreateProductInput.garmentPlacement ● GarmentPlacement enum​

Optional field that represents the placement of the garment on the body. Please choose the most suitable option for your product. 'STRAPLESS', and 'SHOULDERS' should' be applied only for tops. 'HIGH_WAIST', 'LOW_WAIST', and 'REGULAR_WAIST' should be applied only for bottoms.

CreateProductInput.sleeveLength ● SleeveLength enum​

Optional field related to top products. It represents the length of the sleeve. It helps our algorithm to generate better try on results with desired sleeve length.

CreateProductInput.externalId ● String scalar​

Optional field. Can be passed if you have that item stored in your system.

CreateProductInput.externalUrl ● String scalar​

Optional field. It is an url to the marketplace, shop, etc.

Member Of​

createProduct mutation