Create a simple product
This is how you can create a simple product via API.
mutation {
productCreateSimple(
input: { sku: "SKU_test2", templateCode: "Tshirts"}
) {
__typename
}
}
You can also assign a category to the newly created product in the same query.
mutation {
productCreateSimple(
input: { sku: "SKU_test2", templateCode: "Tshirts", categoryCodes: "DELL" }
) {
__typename
}
}
Last updated
Was this helpful?