POST api/application/saveeducationalhistory

Request Information

URI Parameters

None.

Body Parameters

Collection of ApplicantEducationalHistoryDTO
NameDescriptionTypeAdditional information
EducationalHistoryID

integer

Required

Name

string

Required

Address

string

Required

From

integer

Required

To

integer

Required

TypeOfSchool

PreviousSchoolType

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "educationalHistoryID": 1,
    "name": "sample string 2",
    "address": "sample string 3",
    "from": 4,
    "to": 5,
    "typeOfSchool": 0
  },
  {
    "educationalHistoryID": 1,
    "name": "sample string 2",
    "address": "sample string 3",
    "from": 4,
    "to": 5,
    "typeOfSchool": 0
  }
]

text/html

Sample:
[{"educationalHistoryID":1,"name":"sample string 2","address":"sample string 3","from":4,"to":5,"typeOfSchool":0},{"educationalHistoryID":1,"name":"sample string 2","address":"sample string 3","from":4,"to":5,"typeOfSchool":0}]

text/xml

Sample:
<ArrayOfApplicantEducationalHistoryDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApplicationPortalAPI.Models.DTOs.Application">
  <ApplicantEducationalHistoryDTO>
    <Address>sample string 3</Address>
    <EducationalHistoryID>1</EducationalHistoryID>
    <From>4</From>
    <Name>sample string 2</Name>
    <To>5</To>
    <TypeOfSchool>NotSet</TypeOfSchool>
  </ApplicantEducationalHistoryDTO>
  <ApplicantEducationalHistoryDTO>
    <Address>sample string 3</Address>
    <EducationalHistoryID>1</EducationalHistoryID>
    <From>4</From>
    <Name>sample string 2</Name>
    <To>5</To>
    <TypeOfSchool>NotSet</TypeOfSchool>
  </ApplicantEducationalHistoryDTO>
</ArrayOfApplicantEducationalHistoryDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

ServiceResponseOfString
NameDescriptionTypeAdditional information
HttpStatusCode

HttpStatusCode

None.

ResponseMessage

string

None.

HasError

boolean

None.

Data

string

None.

Response Formats

application/json, text/json

Sample:
{
  "httpStatusCode": 100,
  "responseMessage": "sample string 1",
  "hasError": true,
  "data": "sample string 3"
}

text/html

Sample:
{"httpStatusCode":100,"responseMessage":"sample string 1","hasError":true,"data":"sample string 3"}

text/xml

Sample:
<ServiceResponseOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApplicationPortalAPI.Models">
  <Data>sample string 3</Data>
  <HasError>true</HasError>
  <HttpStatusCode>Continue</HttpStatusCode>
  <ResponseMessage>sample string 1</ResponseMessage>
</ServiceResponseOfstring>