POST api/MealsEntries

Request Information

URI Parameters

None.

Body Parameters

MealsEntry
NameDescriptionTypeAdditional information
MealsEntryId

integer

None.

studyID

string

Required

ParticipantID

string

None.

MealType

string

None.

Grains

decimal number

None.

Protein

decimal number

None.

Vegetable

decimal number

None.

Fruit

decimal number

None.

Dairy

decimal number

None.

DateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "MealsEntryId": 1,
  "studyID": "sample string 2",
  "ParticipantID": "sample string 3",
  "MealType": "sample string 4",
  "Grains": 5.1,
  "Protein": 6.1,
  "Vegetable": 7.1,
  "Fruit": 8.1,
  "Dairy": 9.1,
  "DateTime": "2025-12-21T23:19:38.7364548-08:00"
}

application/xml, text/xml

Sample:
<MealsEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/diabetesAppService.Models">
  <Dairy>9.1</Dairy>
  <DateTime>2025-12-21T23:19:38.7364548-08:00</DateTime>
  <Fruit>8.1</Fruit>
  <Grains>5.1</Grains>
  <MealType>sample string 4</MealType>
  <MealsEntryId>1</MealsEntryId>
  <ParticipantID>sample string 3</ParticipantID>
  <Protein>6.1</Protein>
  <Vegetable>7.1</Vegetable>
  <studyID>sample string 2</studyID>
</MealsEntry>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MealsEntry
NameDescriptionTypeAdditional information
MealsEntryId

integer

None.

studyID

string

Required

ParticipantID

string

None.

MealType

string

None.

Grains

decimal number

None.

Protein

decimal number

None.

Vegetable

decimal number

None.

Fruit

decimal number

None.

Dairy

decimal number

None.

DateTime

date

None.

Response Formats

application/json, text/json

Sample:
{
  "MealsEntryId": 1,
  "studyID": "sample string 2",
  "ParticipantID": "sample string 3",
  "MealType": "sample string 4",
  "Grains": 5.1,
  "Protein": 6.1,
  "Vegetable": 7.1,
  "Fruit": 8.1,
  "Dairy": 9.1,
  "DateTime": "2025-12-21T23:19:38.7364548-08:00"
}

application/xml, text/xml

Sample:
<MealsEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/diabetesAppService.Models">
  <Dairy>9.1</Dairy>
  <DateTime>2025-12-21T23:19:38.7364548-08:00</DateTime>
  <Fruit>8.1</Fruit>
  <Grains>5.1</Grains>
  <MealType>sample string 4</MealType>
  <MealsEntryId>1</MealsEntryId>
  <ParticipantID>sample string 3</ParticipantID>
  <Protein>6.1</Protein>
  <Vegetable>7.1</Vegetable>
  <studyID>sample string 2</studyID>
</MealsEntry>