Nutrition Summaries
daily.data.meal.created

Each summary object is uniquely identified by its id.

If multiple events are received at the same id, the last event received replaces all its previous versions.

Properties

event_typerequired
const string

Constant: daily.data.meal.created

datarequired
MealInDBBase_ClientFacingSource_
idrequired
string
user_idrequired
string
priority_idrequired
integer
source_idrequired
integer
provider_idrequired
string
timestamprequired
string
namerequired
string
energy
Energy | null
unitrequired
string
valuerequired
number
macros
Macros | null
carbs
number | null
protein
number | null
fats
Fats | null
saturated
number | null
monounsaturated
number | null
polyunsaturated
number | null
omega3
number | null
omega6
number | null
total
number | null
alcohol
number | null
water
number | null
fibre
number | null
sugar
number | null
micros
Micros | null
minerals
object | null
trace_elements
object | null
vitamins
object | null
data
object | null
sourcerequired
ClientFacingSource
namerequired
string

Name of source of information

slugrequired
string

Slug for designated source

logorequired
string

URL for source logo

created_atrequired
string
updated_atrequired
string

Examples

{
  "event_type": "daily.data.meal.created",
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
    "priority_id": 42,
    "source_id": 10,
    "provider_id": "123456",
    "timestamp": "2019-08-24T14:15:22Z",
    "name": "Dinner",
    "data": {
      "Chiken coquet starter": {
        "energy": {
          "unit": "kcal",
          "value": 400.0
        },
        "macros": {
          "carbs": 75.0,
          "protein": 10.0,
          "fats": {
            "saturated": 98,
            "monounsaturated": 1,
            "polyunsaturated": 1,
            "omega3": 0,
            "omega6": 0,
            "total": 100
          },
          "sugar": 25.0
        },
        "micros": {
          "minerals": {
            "sodium": 500.0
          }
        }
      },
      "Coffee, black, 1 tbsp(s)": {
        "energy": {
          "unit": "kcal",
          "value": 0.0
        },
        "macros": {
          "carbs": 0.0,
          "protein": 0.0,
          "fats": {
            "total": 0.0
          },
          "sugar": 0.0
        },
        "micros": {
          "minerals": {
            "sodium": 0.0
          }
        }
      }
    },
    "source": {
      "name": "MyFitnessPal",
      "slug": "my_fitness_pal",
      "logo": "https://logo_url.com"
    },
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}