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