POST api/SaveServingPeriod
Request Information
URI Parameters
None.
Body Parameters
ServingPeriodSaveRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ServingPeriodId | integer |
None. |
|
| ServingPeriodName | string |
None. |
|
| MealTypeId | integer |
None. |
|
| StartTime | date |
None. |
|
| EndTime | date |
None. |
|
| DayCheck | boolean |
None. |
|
| SchoolId | globally unique identifier |
None. |
|
| IsActive | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ServingPeriodId": 1,
"ServingPeriodName": "sample string 1",
"MealTypeId": 2,
"StartTime": "2026-01-22T21:32:18.2006562+00:00",
"EndTime": "2026-01-22T21:32:18.2006562+00:00",
"DayCheck": true,
"SchoolId": "106bd8e0-b81b-4034-bbff-ddc0bbf50951",
"IsActive": true
}
application/xml, text/xml
Sample:
<ServingPeriodSaveRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.Order"> <DayCheck>true</DayCheck> <EndTime>2026-01-22T21:32:18.2006562+00:00</EndTime> <IsActive>true</IsActive> <MealTypeId>2</MealTypeId> <SchoolId>106bd8e0-b81b-4034-bbff-ddc0bbf50951</SchoolId> <ServingPeriodId>1</ServingPeriodId> <ServingPeriodName>sample string 1</ServingPeriodName> <StartTime>2026-01-22T21:32:18.2006562+00:00</StartTime> </ServingPeriodSaveRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ServingPeriodSaveResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ServingPeriodId | integer |
None. |
|
| ResponseMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ServingPeriodId": 1,
"ResponseMessage": "sample string 2"
}
application/xml, text/xml
Sample:
<ServingPeriodSaveResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.Order"> <ResponseMessage>sample string 2</ResponseMessage> <ServingPeriodId>1</ServingPeriodId> </ServingPeriodSaveResponseModel>