POST api/Donor/SaveDonor
Request Information
URI Parameters
None.
Body Parameters
DonorModel| Name | Description | Type | Additional information |
|---|---|---|---|
| OrganizationId | integer |
Required |
|
| GovernmentId | integer |
Required |
|
| GovernmentName | string |
None. |
|
| CenterId | integer |
Required |
|
| CenterName | string |
None. |
|
| GenderValue | string |
Required |
|
| TypeContactName | string |
None. |
|
| DonorOfName | string |
None. |
|
| FreqName | string |
None. |
|
| Id | integer |
None. |
|
| DonorName | string |
Required |
|
| Title | string |
None. |
|
| Mob | string |
Matching regular expression pattern: ^[0-9]*$ Max length: 11 Min length: 11 |
|
| LandLinePhone | string |
Matching regular expression pattern: ^[0-9]*$ Max length: 10 Min length: 10 |
|
| Job | string |
None. |
|
| WorkPlace | string |
None. |
|
| Address | string |
None. |
|
| string |
None. |
||
| Notes | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"OrganizationId": 1,
"GovernmentId": 1,
"GovernmentName": "sample string 1",
"CenterId": 2,
"CenterName": "sample string 3",
"GenderValue": "sample string 4",
"TypeContactName": "sample string 5",
"DonorOfName": "sample string 6",
"FreqName": "sample string 7",
"Id": 8,
"DonorName": "sample string 9",
"Title": "sample string 10",
"Mob": "sample string 11",
"LandLinePhone": "sample string 12",
"Job": "sample string 13",
"WorkPlace": "sample string 14",
"Address": "sample string 15",
"Email": "sample string 16",
"Notes": "sample string 17"
}
application/xml, text/xml
Sample:
<DonorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ECBWebAPI.Core.Models"> <Address>sample string 15</Address> <CenterId>2</CenterId> <CenterName>sample string 3</CenterName> <DonorName>sample string 9</DonorName> <DonorOfName>sample string 6</DonorOfName> <Email>sample string 16</Email> <FreqName>sample string 7</FreqName> <GenderValue>sample string 4</GenderValue> <GovernmentId>1</GovernmentId> <GovernmentName>sample string 1</GovernmentName> <Id>8</Id> <Job>sample string 13</Job> <LandLinePhone>sample string 12</LandLinePhone> <Mob>sample string 11</Mob> <Notes>sample string 17</Notes> <OrganizationId>1</OrganizationId> <Title>sample string 10</Title> <TypeContactName>sample string 5</TypeContactName> <WorkPlace>sample string 14</WorkPlace> </DonorModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |