POST api/SaveServingZone
Request Information
URI Parameters
None.
Body Parameters
ServingZoneSaveRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ServingZoneId | integer |
None. |
|
| ServingZoneName | string |
None. |
|
| ServingZoneDescription | string |
None. |
|
| IsActive | boolean |
None. |
|
| FullService | boolean |
None. |
|
| PickUp | boolean |
None. |
|
| SchoolId | globally unique identifier |
None. |
|
| ListServingZoneMealtype | Collection of ServingZoneMealtypeRequestModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"ServingZoneId": 1,
"ServingZoneName": "sample string 1",
"ServingZoneDescription": "sample string 2",
"IsActive": true,
"FullService": true,
"PickUp": true,
"SchoolId": "e521ae24-1d3d-4b6c-9a64-ee3097d5d546",
"ListServingZoneMealtype": [
{
"ServingZoneMealTypesId": 1,
"ServingZoneId": 1,
"MealTypeId": 1
},
{
"ServingZoneMealTypesId": 1,
"ServingZoneId": 1,
"MealTypeId": 1
}
]
}
application/xml, text/xml
Sample:
<ServingZoneSaveRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.Order">
<FullService>true</FullService>
<IsActive>true</IsActive>
<ListServingZoneMealtype>
<ServingZoneMealtypeRequestModel>
<MealTypeId>1</MealTypeId>
<ServingZoneId>1</ServingZoneId>
<ServingZoneMealTypesId>1</ServingZoneMealTypesId>
</ServingZoneMealtypeRequestModel>
<ServingZoneMealtypeRequestModel>
<MealTypeId>1</MealTypeId>
<ServingZoneId>1</ServingZoneId>
<ServingZoneMealTypesId>1</ServingZoneMealTypesId>
</ServingZoneMealtypeRequestModel>
</ListServingZoneMealtype>
<PickUp>true</PickUp>
<SchoolId>e521ae24-1d3d-4b6c-9a64-ee3097d5d546</SchoolId>
<ServingZoneDescription>sample string 2</ServingZoneDescription>
<ServingZoneId>1</ServingZoneId>
<ServingZoneName>sample string 1</ServingZoneName>
</ServingZoneSaveRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ServingZoneSaveResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ServingZoneId | integer |
None. |
|
| ResponseMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ServingZoneId": 1,
"ResponseMessage": "sample string 2"
}
application/xml, text/xml
Sample:
<ServingZoneSaveResponseModel 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> <ServingZoneId>1</ServingZoneId> </ServingZoneSaveResponseModel>