> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/graphql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/graphql/query/mutations/food-log/users-foods-and-recipes/create-my-common-foods.md).

# Create my Common Foods

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

### Available Arguments

| Name          | Type                                                                        | Required? | Description                                                                        |
| ------------- | --------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------------------------- |
| `name`        | String                                                                      | No        | Name of the food                                                                   |
| `description` | String                                                                      | No        | Description of the food                                                            |
| `nutrients`   | [Nutrients](https://docs.suggestic.com/graphql/objects/food-logs/nutrients) | No        | Object that contains the nutrient fields information of the food to be introduced. |
| `portions`    | [Portions](https://docs.suggestic.com/graphql/objects/food-logs/portions)   | No        | Object that contains the portions fields information of the food to be introduced. |

### Available Fields

The following field will be part of the response.

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

### Example

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

```graphql
mutation createMyCommonFoods {
    createMyCommonFoods(
    input: {
        name:"CALIFORNIA CHILE BLEND" 
        description:"AG STANDARD, CALIFORNIA CHILE BLEND SMOKE ALMONDS" 
        nutrients:[
            {amount:0.038,unit:"G",nutrient:PROTEIN},
            {amount:0.34,unit:"G",nutrient:RETINOL}
    ]
        portions:[
            {amount:45.33 unit:"g" modifier:"90000" gramWeight:1}
    ]}) {
        success
        message
    }
}
```

{% endtab %}

{% tab title="Result" %}

```graphql
{
  "data": {
    "createMyCommonFoods": {
      "success": true,
      "message": "Common food saved"
    }
  }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.suggestic.com/graphql/query/mutations/food-log/users-foods-and-recipes/create-my-common-foods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
