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": "2025-12-06T03:48:58.2106306+00:00",
"EndTime": "2025-12-06T03:48:58.2107201+00:00",
"DayCheck": true,
"SchoolId": "3d9b0078-a23f-4b18-ae6c-d55c9b94e36d",
"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>2025-12-06T03:48:58.2107201+00:00</EndTime> <IsActive>true</IsActive> <MealTypeId>2</MealTypeId> <SchoolId>3d9b0078-a23f-4b18-ae6c-d55c9b94e36d</SchoolId> <ServingPeriodId>1</ServingPeriodId> <ServingPeriodName>sample string 1</ServingPeriodName> <StartTime>2025-12-06T03:48:58.2106306+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>