POST api/ParishEvent/Save
Request Information
URI Parameters
None.
Body Parameters
ParishEventSaveVM| Name | Description | Type | Additional information |
|---|---|---|---|
| BookId | integer |
Required |
|
| FinYearId | integer |
Required |
|
| EventDate | string |
Required |
|
| EventTime | string |
None. |
|
| EventRefNo | string |
Required String length: inclusive between 0 and 25 |
|
| EventDescription | string |
Required String length: inclusive between 0 and 200 |
|
| EventType | ParishEventTypeLookupVM |
Required |
|
| Location | string |
String length: inclusive between 0 and 100 |
|
| Place | PlaceLookup |
None. |
|
| Parish | EstablishmentLookup |
None. |
|
| Remarks | string |
String length: inclusive between 0 and 200 |
|
| Status | string |
Required Matching regular expression pattern: A|I |
|
| CreateUser | integer |
Required |
|
| CreateIp | string |
Required String length: inclusive between 0 and 20 |
Request Formats
application/json, text/json
Sample:
{
"BookId": 1,
"FinYearId": 2,
"EventDate": "sample string 3",
"EventTime": "sample string 4",
"EventRefNo": "sample string 5",
"EventDescription": "sample string 6",
"EventType": {
"EventTypeId": 1,
"EventTypeName": "sample string 2"
},
"Location": "sample string 7",
"Place": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"Parish": {
"EstablishId": 1,
"EstablishName": "sample string 2",
"EstablishType": {
"EstablishTypeId": 1,
"EstablishTypeName": "sample string 2"
},
"EstablishCategory": {
"EstablishCategoryId": 1,
"EstablishCategoryName": "sample string 2"
},
"TotalMembers": 3,
"TotalHouses": 4
},
"Remarks": "sample string 8",
"Status": "sample string 9",
"CreateUser": 10,
"CreateIp": "sample string 11"
}
application/xml, text/xml
Sample:
<ParishEventSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
<BookId>1</BookId>
<CreateIp>sample string 11</CreateIp>
<CreateUser>10</CreateUser>
<EventDate>sample string 3</EventDate>
<EventDescription>sample string 6</EventDescription>
<EventRefNo>sample string 5</EventRefNo>
<EventTime>sample string 4</EventTime>
<EventType>
<EventTypeId>1</EventTypeId>
<EventTypeName>sample string 2</EventTypeName>
</EventType>
<FinYearId>2</FinYearId>
<Location>sample string 7</Location>
<Parish>
<EstablishCategory>
<EstablishCategoryId>1</EstablishCategoryId>
<EstablishCategoryName>sample string 2</EstablishCategoryName>
</EstablishCategory>
<EstablishId>1</EstablishId>
<EstablishName>sample string 2</EstablishName>
<EstablishType>
<EstablishTypeId>1</EstablishTypeId>
<EstablishTypeName>sample string 2</EstablishTypeName>
</EstablishType>
<TotalHouses>4</TotalHouses>
<TotalMembers>3</TotalMembers>
</Parish>
<Place>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</Place>
<Remarks>sample string 8</Remarks>
<Status>sample string 9</Status>
</ParishEventSaveVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.