# featureCreate

Create a feature

**Scope required:** product:write

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

```graphql
mutation featureCreate ($productId: ID!, $attributes: FeatureAttributes!) {
  featureCreate (productId: $productId, attributes: $attributes) {
      errors
      feature {
        code
        createdAt
        description
        id
        isProvisioned
        isUnit
        isVisible
        name
        position
        productId
        unitName
        updatedAt
      }
  }
}
```

## Arguments

```json
{
  "productId": "456123",
  "attributes": {
    "name": "",
    "code": "",
    "position": 123,
    "description": "",
    "kind": "FeatureKind",
    "isUnit": true,
    "isProvisioned": true,
    "isVisible": true,
    "usageCalculationType": "UsageCalculation"
  }
}
```

| Name       | Type                                                                                        | Description |
| ---------- | ------------------------------------------------------------------------------------------- | ----------- |
| productId  | ID                                                                                          |             |
| attributes | [FeatureAttributes](https://docs.bunny.com/developer/api-reference/types/featureattributes) |             |

## Response

| Name    | Type                                                                    | Description |
| ------- | ----------------------------------------------------------------------- | ----------- |
| errors  | List (String)                                                           |             |
| feature | [Feature](https://docs.bunny.com/developer/api-reference/types/feature) |             |
