---
search:
  tags:
    - Meal Plans
    - POST
seo:
  description: >-
    Finishes the plan, like "Finish" in the dashboard: it appears in the…
    Reference for the POST /meal-plans/{meal_plan_id}/send endpoint in the
    Almendra API.
sidebar:
  label: Send a meal plan to the patient
  badge: POST
title: Send a meal plan to the patient
type: openapi-operation
---
Finishes the plan, like "Finish" in the dashboard: it appears in the patient's Almendra app and the patient gets a notification. Sending an already sent plan changes nothing.

Requires the `meal_plans:write` permission.

`POST /meal-plans/{meal_plan_id}/send`

**Responses**

- `200` — Meal plan sent
- `400` — Invalid path parameter, query parameter or request body
- `401` — Missing or invalid API key
- `403` — The account behind the API key has no active paid plan, or the key lacks the permission this operation needs
- `404` — Meal plan not found
- `409` — The plan has nothing to send yet
- `429` — Rate limit exceeded (600 requests per 60 seconds); retry after \`Retry-After\` seconds
- `500` — Unexpected server error

Response example, 200:

```json
{
  "_id": "string",
  "name": "Plan semana 1",
  "patient": "string",
  "type": "daily",
  "startDate": "2019-08-24T14:15:22Z",
  "endDate": "2019-08-24T14:15:22Z",
  "sent": true,
  "objective": "string",
  "pdfUrl": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "indications": [
    "string"
  ],
  "days": [
    {
      "name": "Lunes",
      "isFreeDay": true,
      "caloriesKcal": 0,
      "proteinG": 0,
      "carbsG": 0,
      "fatG": 0,
      "meals": [
        {
          "name": "Desayuno",
          "time": "08:00",
          "comment": "string",
          "text": "string",
          "caloriesPercentage": 0,
          "proteinTargetG": 0,
          "carbsTargetG": 0,
          "fatTargetG": 0,
          "options": [
            {
              "name": "Opción 1",
              "foods": [
                {
                  "food": "string",
                  "foodName": "Avena en hojuelas",
                  "quantity": 40,
                  "unit": "g"
                }
              ]
            }
          ],
          "exchanges": [
            {
              "group": "string",
              "quantity": 2,
              "excludedFoods": [
                "string"
              ]
            }
          ]
        }
      ]
    }
  ]
}
```
