POST api/Sponsor/Save
Request Information
URI Parameters
None.
Body Parameters
SponsorSaveVM| Name | Description | Type | Additional information |
|---|---|---|---|
| SponsorFName | string |
Required String length: inclusive between 0 and 100 |
|
| SponsorMName | string |
Required String length: inclusive between 0 and 100 |
|
| SponsorLName | string |
Required String length: inclusive between 0 and 100 |
|
| SponsorNName | string |
Required String length: inclusive between 0 and 100 |
|
| Prefix | PrefixLookupVM |
Required |
|
| Code | string |
Required String length: inclusive between 0 and 10 |
|
| PhoneNumber | string |
String length: inclusive between 0 and 50 |
|
| MobileNumber | string |
String length: inclusive between 0 and 50 |
|
| string |
String length: inclusive between 0 and 100 |
||
| Address | string |
Required String length: inclusive between 0 and 200 |
|
| AddressZip | string |
String length: inclusive between 0 and 50 |
|
| AddressCity | string |
String length: inclusive between 0 and 100 |
|
| State | PlaceLookupVM |
None. |
|
| Country | PlaceLookupVM |
None. |
|
| ApplNum | string |
String length: inclusive between 0 and 50 |
|
| SponsorDob | string |
None. |
|
| Center | EstablishmentLookupVM |
None. |
|
| Parish | EstablishmentLookupVM |
Required |
|
| CoSponsorName | string |
String length: inclusive between 0 and 200 |
|
| SponsorStatus | SponsorStatusLookupVM |
Required |
|
| Promoter | PromoterLookupVM |
None. |
|
| 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
{
"SponsorFName": "sample string 1",
"SponsorMName": "sample string 2",
"SponsorLName": "sample string 3",
"SponsorNName": "sample string 4",
"Prefix": {
"PrefixId": 1,
"PrefixName": "sample string 2"
},
"Code": "sample string 5",
"PhoneNumber": "sample string 6",
"MobileNumber": "sample string 7",
"Email": "sample string 8",
"Address": "sample string 9",
"AddressZip": "sample string 10",
"AddressCity": "sample string 11",
"State": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"Country": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"ApplNum": "sample string 12",
"SponsorDob": "sample string 13",
"Center": {
"EstablishId": 1,
"EstablishName": "sample string 2"
},
"Parish": {
"EstablishId": 1,
"EstablishName": "sample string 2"
},
"CoSponsorName": "sample string 14",
"SponsorStatus": {
"SponsorStatusId": 1,
"SponsorStatusName": "sample string 2"
},
"Promoter": {
"PromoterId": 1,
"PromoterFName": "sample string 2",
"PromoterMName": "sample string 3",
"PromoterLName": "sample string 4",
"PromoterNName": "sample string 5"
},
"Status": "sample string 15",
"CreateUser": 16,
"CreateIp": "sample string 17"
}
application/xml, text/xml
<SponsorSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
<Address>sample string 9</Address>
<AddressCity>sample string 11</AddressCity>
<AddressZip>sample string 10</AddressZip>
<ApplNum>sample string 12</ApplNum>
<Center>
<EstablishId>1</EstablishId>
<EstablishName>sample string 2</EstablishName>
</Center>
<CoSponsorName>sample string 14</CoSponsorName>
<Code>sample string 5</Code>
<Country>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</Country>
<CreateIp>sample string 17</CreateIp>
<CreateUser>16</CreateUser>
<Email>sample string 8</Email>
<MobileNumber>sample string 7</MobileNumber>
<Parish>
<EstablishId>1</EstablishId>
<EstablishName>sample string 2</EstablishName>
</Parish>
<PhoneNumber>sample string 6</PhoneNumber>
<Prefix>
<PrefixId>1</PrefixId>
<PrefixName>sample string 2</PrefixName>
</Prefix>
<Promoter>
<PromoterFName>sample string 2</PromoterFName>
<PromoterId>1</PromoterId>
<PromoterLName>sample string 4</PromoterLName>
<PromoterMName>sample string 3</PromoterMName>
<PromoterNName>sample string 5</PromoterNName>
</Promoter>
<SponsorDob>sample string 13</SponsorDob>
<SponsorFName>sample string 1</SponsorFName>
<SponsorLName>sample string 3</SponsorLName>
<SponsorMName>sample string 2</SponsorMName>
<SponsorNName>sample string 4</SponsorNName>
<SponsorStatus>
<SponsorStatusId>1</SponsorStatusId>
<SponsorStatusName>sample string 2</SponsorStatusName>
</SponsorStatus>
<State>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</State>
<Status>sample string 15</Status>
</SponsorSaveVM>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.