# featureUsageUpdate

Update a feature usage record for usage based billing

**Scope required:** billing:write

For a complete list of input attributes see the [FeatureUsageAttributes](https://docs.bunny.com/developer/api-reference/types/featureusageattributes) type

```graphql
mutation featureUsageUpdate ($id: ID!, $attributes: FeatureUsageAttributes!) {
  featureUsageUpdate (id: $id, attributes: $attributes) {
      errors
      featureUsage {
        accountId
        createdAt
        featureId
        id
        notes
        quantity
        subscriptionChargeId
        subscriptionId
        updatedAt
        usageAt
      }
  }
}
```

## Arguments

```json
{
  "id": "456123",
  "attributes": {
    "quantity": "1.00",
    "usageAt": "2022-06-01T00:00:00Z",
    "featureId": "456123",
    "featureCode": "",
    "accountId": "456123",
    "subscriptionId": "456123",
    "subscriptionChargeId": "456123",
    "overrideUsageAtLimit": true,
    "notes": ""
  }
}
```

| Name       | Type                                                                                                  | Description |
| ---------- | ----------------------------------------------------------------------------------------------------- | ----------- |
| id         | ID                                                                                                    |             |
| attributes | [FeatureUsageAttributes](https://docs.bunny.com/developer/api-reference/types/featureusageattributes) |             |

## Response

| Name         | Type                                                                              | Description |
| ------------ | --------------------------------------------------------------------------------- | ----------- |
| errors       | String                                                                            |             |
| featureUsage | [FeatureUsage](https://docs.bunny.com/developer/api-reference/types/featureusage) |             |
