# From Days

The `fromDays` option, copy an existing meal plan which has a user assigned. Send a `profileId` and user's meal plan days required to be copied and saved in the template.

### Available Arguments

Refer to [this document](https://docs.suggestic.com/graphql/query/mutations/meal-plan/create-meal-plan-template#available-arguments) to see the available arguments to use in this mutation.

## Example

### Copy an existing meal plan

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

```graphql
mutation {
  createMealPlanTemplate(
    description: "Meal Plan Template"
    fromDays: {
      fromDate: "2021-11-02"
      profileId: "UHJvZmlsZTo3MzliNmExOC1lMjJjLTRiNTktYWZhZC00NTE1NTYxZGM4NDA="
      toDate: "2021-11-03"
    }
    name: "New Meal Plan Template"
  )
  {
    message
    success
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "createMealPlanTemplate": {
      "message": "Meal plan template created",
      "success": true
    }
  }
}
```

{% endtab %}
{% endtabs %}

###
