# Create my Branded Food

Use the `createMyBrandedFoods` mutation to log an own-brand food intake.&#x20;

### Available Arguments

| Name                       | Type                                                                        | Required? | Description                                                                                                                                                     |
| -------------------------- | --------------------------------------------------------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`                     | String                                                                      | Yes       | Name of the food                                                                                                                                                |
| `description`              | String                                                                      | No        | Description of the food                                                                                                                                         |
| `brandOwner`               | String                                                                      | Yes       | Name of the brand owner                                                                                                                                         |
| `servingSizeUnit`          | String                                                                      | Yes       | Quantity of grams per serving size unit                                                                                                                         |
| `servingSize`              | String                                                                      | Yes       | Quantity of grams per serving                                                                                                                                   |
| `gtin_upc`                 | String                                                                      | Yes       | [GTIN ](https://docs.suggestic.com/graphql/glossary#gtin)or [UPC ](https://docs.suggestic.com/graphql/glossary#upc)number that is included in the food package. |
| `householdServingFulltext` | String                                                                      | No        | Name of the serving                                                                                                                                             |
| `nutrients`                | [Nutrients](https://docs.suggestic.com/graphql/objects/food-logs/nutrients) | Yes       | Object that contains the nutrient information of the food.                                                                                                      |

### Available Fields

The following field will be part of the response.

| Field name | Type   | Description                                                                     |
| ---------- | ------ | ------------------------------------------------------------------------------- |
| `sucess`   | String | **True** if the branded food has been created. Otherwise, it displays **False** |
| `message`  | String | Description of the result                                                       |

### Example

{% tabs %}
{% tab title="Mutation" %}

```graphql
mutation createMyBrandedFoods {
  createMyBrandedFoods(
    input: {
      brandOwner: "Pil"
      servingSizeUnit: "ml"
      servingSize: 240
      gtinUpc: "688267008689"
      householdServingFulltext: "1 cup"
      name: "Milk"
      nutrients: [
        { amount: 150, unit: "MG", nutrient: POTASSIUM_K }
        { amount: 120, unit: "MG", nutrient: CALCIUM_CA }
      ]
    }
  ) {
    success
    message
  }
}

```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "createMyBrandedFoods": {
      "success": true,
      "message": "Branded food saved"
    }
  }
}
```

{% endtab %}
{% endtabs %}
