createProduct
Version 2024-04-01
Overview
Create a Product.
Required scope(s)
View & Edit Catalog Data
Response
Return type CreateProductResponse
Arguments
Argument | Description |
---|---|
input (CreateProductInput required) | Specifies the input fields required to create a new Product. |
Examples
Create Product
Request
mutation CreateProduct {
createProduct(
input: {
externalId: "product-externalId"
amazonSku: {
value: "product-amazon-sku"
}
sku: "product-sku"
offerPrime: true
productDetailPageUrl: "https://example.com/products/my-product"
image: {
sourceUrl: "https://example.com/products/my-product.jpg"
}
}
) {
id
}
}
Response
{
"data": {
"createProduct": {
"id": "abcdef01234567"
}
}
}
Updated about 2 months ago