productDuplicate
Create a duplicate of a product. The productDuplicate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: product:write
mutation productDuplicate ($id: ID!) {
productDuplicate (id: $id) {
errors
product {
code
createdAt
customFieldsData
description
everythingInPlus
hasCustomFields
id
internalNotes
name
plansToDisplay
platformId
productCategoryId
showProductNameOnLineItem
updatedAt
}
}
}
ArgumentsLink to Arguments section
{
"id": "456123"
}
| Name | Type | Description |
|---|---|---|
| id | ID |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| product | Product |