featureUpdate
Update a feature. The featureUpdate 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 FeatureAttributes type
mutation featureUpdate ($id: ID!, $attributes: FeatureAttributes!) {
featureUpdate (id: $id, attributes: $attributes) {
errors
feature {
code
createdAt
description
id
isProvisioned
isUnit
isVisible
name
position
productId
unitName
updatedAt
}
}
}
ArgumentsLink to Arguments section
{
"id": "456123",
"attributes": {
"name": "",
"code": "",
"position": 123,
"description": "",
"kind": "FeatureKind",
"isUnit": true,
"isProvisioned": true,
"isVisible": true,
"usageCalculationType": "UsageCalculation"
}
}
| Name | Type | Description |
|---|---|---|
| id | ID | |
| attributes | FeatureAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| feature | Feature |