POST api/settings/savepassport

Request Information

URI Parameters

None.

Body Parameters

ApplicantPassportDTO
NameDescriptionTypeAdditional information
PassportData

Collection of byte

Required

ImageType

string

Required

Matching regular expression pattern: jpeg|jpg|png

ImageSize

integer

Required

Range: inclusive between 0 and 2097152

Request Formats

application/json, text/json

Sample:
{
  "passportData": "QEA=",
  "imageType": "sample string 1",
  "imageSize": 2
}

text/html

Sample:
{"passportData":"QEA=","imageType":"sample string 1","imageSize":2}

text/xml

Sample:
<ApplicantPassportDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApplicationPortalAPI.Models.DTOs.Application">
  <ImageSize>2</ImageSize>
  <ImageType>sample string 1</ImageType>
  <PassportData>QEA=</PassportData>
</ApplicantPassportDTO>

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 'ApplicantPassportDTO'.

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>