POST api/Volunteer/AddVolunteer

Request Information

URI Parameters

None.

Body Parameters

AddVolunteerViewModel
NameDescriptionTypeAdditional information
VolunteerId

integer

None.

VolunteerName

string

None.

FatherName

string

None.

DOB

string

None.

GenderId

integer

None.

SocialCategoryId

integer

None.

CategoryId

integer

None.

EducationId

integer

None.

Address

string

None.

EmailId

string

None.

MobileNo

string

Matching regular expression pattern: ^[6-9]\d{9}$

UDISECode

string

Matching regular expression pattern: ^23\d{9}$

IsDivyangjan

boolean

None.

StudentUDISECode

string

Matching regular expression pattern: ^23\d{9}$

Class

string

Matching regular expression pattern: ^(9|10|11|12)$

SamagraId

string

Matching regular expression pattern: ^[1-9]\d{8}$

IMEI

string

None.

MobileId

string

None.

Request Formats

application/json, text/json, application/problem+json

Sample:
{
  "VolunteerId": 1,
  "VolunteerName": "sample string 2",
  "FatherName": "sample string 3",
  "DOB": "sample string 4",
  "GenderId": 5,
  "SocialCategoryId": 6,
  "CategoryId": 7,
  "EducationId": 8,
  "Address": "sample string 9",
  "EmailId": "sample string 10",
  "MobileNo": "sample string 11",
  "UDISECode": "sample string 12",
  "IsDivyangjan": true,
  "StudentUDISECode": "sample string 14",
  "Class": "sample string 15",
  "SamagraId": "sample string 16",
  "IMEI": "sample string 17",
  "MobileId": "sample string 18"
}

application/xml, text/xml

Sample:
<AddVolunteerViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALProject.ViewModel.Volunteer">
  <Address>sample string 9</Address>
  <CategoryId>7</CategoryId>
  <Class>sample string 15</Class>
  <DOB>sample string 4</DOB>
  <EducationId>8</EducationId>
  <EmailId>sample string 10</EmailId>
  <FatherName>sample string 3</FatherName>
  <GenderId>5</GenderId>
  <IMEI>sample string 17</IMEI>
  <IsDivyangjan>true</IsDivyangjan>
  <MobileId>sample string 18</MobileId>
  <MobileNo>sample string 11</MobileNo>
  <SamagraId>sample string 16</SamagraId>
  <SocialCategoryId>6</SocialCategoryId>
  <StudentUDISECode>sample string 14</StudentUDISECode>
  <UDISECode>sample string 12</UDISECode>
  <VolunteerId>1</VolunteerId>
  <VolunteerName>sample string 2</VolunteerName>
</AddVolunteerViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.