POST api/Player/Meal/CreateOrUpdate?date={date}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
date

date

Required

Body Parameters

PlayerMealWeeklyRecord
NameDescriptionTypeAdditional information
MealDates

Collection of PlayerMealDateDailyRecord

None.

Request Formats

application/json, text/json

Sample:
{
  "MealDates": [
    {
      "MealDate": "2026-09-29T15:09:55.8455588+01:00",
      "Meals": [
        {
          "MealType": 1
        },
        {
          "MealType": 1
        }
      ]
    },
    {
      "MealDate": "2026-09-29T15:09:55.8455588+01:00",
      "Meals": [
        {
          "MealType": 1
        },
        {
          "MealType": 1
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<PlayerMealWeeklyRecord xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FootballISM.Api.Contracts.Player">
  <MealDates>
    <PlayerMealDateDailyRecord>
      <MealDate>2026-09-29T15:09:55.8455588+01:00</MealDate>
      <Meals>
        <MealDailyRecord>
          <MealType>Breakfast</MealType>
        </MealDailyRecord>
        <MealDailyRecord>
          <MealType>Breakfast</MealType>
        </MealDailyRecord>
      </Meals>
    </PlayerMealDateDailyRecord>
    <PlayerMealDateDailyRecord>
      <MealDate>2026-09-29T15:09:55.8455588+01:00</MealDate>
      <Meals>
        <MealDailyRecord>
          <MealType>Breakfast</MealType>
        </MealDailyRecord>
        <MealDailyRecord>
          <MealType>Breakfast</MealType>
        </MealDailyRecord>
      </Meals>
    </PlayerMealDateDailyRecord>
  </MealDates>
</PlayerMealWeeklyRecord>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultOfPlayerMealWeeklyRecord
NameDescriptionTypeAdditional information
Result

PlayerMealWeeklyRecord

None.

ErrorCode

ServiceErrorCode

None.

ErrorMessage

Collection of string

None.

Success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "MealDates": [
      {
        "MealDate": "2026-09-29T15:09:55.87679+01:00",
        "Meals": [
          {
            "MealType": 1
          },
          {
            "MealType": 1
          }
        ]
      },
      {
        "MealDate": "2026-09-29T15:09:55.87679+01:00",
        "Meals": [
          {
            "MealType": 1
          },
          {
            "MealType": 1
          }
        ]
      }
    ]
  },
  "ErrorCode": 0,
  "ErrorMessage": [
    "sample string 1",
    "sample string 2"
  ],
  "Success": true
}

application/xml, text/xml

Sample:
<ServiceResultOfPlayerMealWeeklyRecordiCAdAg9i xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FootballISM.Api.Contracts.Results">
  <ErrorCode>None</ErrorCode>
  <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorMessage>
  <Success>true</Success>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/FootballISM.Api.Contracts.Player">
    <d2p1:MealDates>
      <d2p1:PlayerMealDateDailyRecord>
        <d2p1:MealDate>2026-09-29T15:09:55.87679+01:00</d2p1:MealDate>
        <d2p1:Meals>
          <d2p1:MealDailyRecord>
            <d2p1:MealType>Breakfast</d2p1:MealType>
          </d2p1:MealDailyRecord>
          <d2p1:MealDailyRecord>
            <d2p1:MealType>Breakfast</d2p1:MealType>
          </d2p1:MealDailyRecord>
        </d2p1:Meals>
      </d2p1:PlayerMealDateDailyRecord>
      <d2p1:PlayerMealDateDailyRecord>
        <d2p1:MealDate>2026-09-29T15:09:55.87679+01:00</d2p1:MealDate>
        <d2p1:Meals>
          <d2p1:MealDailyRecord>
            <d2p1:MealType>Breakfast</d2p1:MealType>
          </d2p1:MealDailyRecord>
          <d2p1:MealDailyRecord>
            <d2p1:MealType>Breakfast</d2p1:MealType>
          </d2p1:MealDailyRecord>
        </d2p1:Meals>
      </d2p1:PlayerMealDateDailyRecord>
    </d2p1:MealDates>
  </Result>
</ServiceResultOfPlayerMealWeeklyRecordiCAdAg9i>