POST api/TSPRegistration/Focal/{tspRegistrationFocalId}/UpdatedPassports

Request Information

URI Parameters

NameDescriptionTypeAdditional information
tspRegistrationFocalId

string

None.

Body Parameters

TSPRegistrationFocalPassportsListingCreateUpdateViewModel
NameDescriptionTypeAdditional information
PassportList

Collection of PassportResultModel

None.

TSPRegistrationFocalId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "PassportList": [
    {
      "Id": "6d3e5a1d-8b15-481e-8348-0d183f0046c4",
      "PassportNo": "sample string 2",
      "ValidUntil": "2024-12-28T18:10:01.2634427+00:00",
      "IssueByCountryId": "27f8be61-4b71-468e-8523-610b3455ae84",
      "IssueBy": "sample string 4",
      "IsDefault": true,
      "IsDeleted": true
    },
    {
      "Id": "6d3e5a1d-8b15-481e-8348-0d183f0046c4",
      "PassportNo": "sample string 2",
      "ValidUntil": "2024-12-28T18:10:01.2634427+00:00",
      "IssueByCountryId": "27f8be61-4b71-468e-8523-610b3455ae84",
      "IssueBy": "sample string 4",
      "IsDefault": true,
      "IsDeleted": true
    }
  ],
  "TSPRegistrationFocalId": "488f0155-b1d9-4ec2-bde2-0601d9df4094"
}

application/xml, text/xml

Sample:
<TSPRegistrationFocalPassportsListingCreateUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.TSP.ViewModels">
  <PassportList xmlns:d2p1="http://schemas.datacontract.org/2004/07/iP.Products.Domains.MySDS.Models">
    <d2p1:PassportResultModel>
      <d2p1:Id>6d3e5a1d-8b15-481e-8348-0d183f0046c4</d2p1:Id>
      <d2p1:IsDefault>true</d2p1:IsDefault>
      <d2p1:IsDeleted>true</d2p1:IsDeleted>
      <d2p1:IssueBy>sample string 4</d2p1:IssueBy>
      <d2p1:IssueByCountryId>27f8be61-4b71-468e-8523-610b3455ae84</d2p1:IssueByCountryId>
      <d2p1:PassportNo>sample string 2</d2p1:PassportNo>
      <d2p1:ValidUntil>2024-12-28T18:10:01.2634427+00:00</d2p1:ValidUntil>
    </d2p1:PassportResultModel>
    <d2p1:PassportResultModel>
      <d2p1:Id>6d3e5a1d-8b15-481e-8348-0d183f0046c4</d2p1:Id>
      <d2p1:IsDefault>true</d2p1:IsDefault>
      <d2p1:IsDeleted>true</d2p1:IsDeleted>
      <d2p1:IssueBy>sample string 4</d2p1:IssueBy>
      <d2p1:IssueByCountryId>27f8be61-4b71-468e-8523-610b3455ae84</d2p1:IssueByCountryId>
      <d2p1:PassportNo>sample string 2</d2p1:PassportNo>
      <d2p1:ValidUntil>2024-12-28T18:10:01.2634427+00:00</d2p1:ValidUntil>
    </d2p1:PassportResultModel>
  </PassportList>
  <TSPRegistrationFocalId>488f0155-b1d9-4ec2-bde2-0601d9df4094</TSPRegistrationFocalId>
</TSPRegistrationFocalPassportsListingCreateUpdateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[0].Id"

6d3e5a1d-8b15-481e-8348-0d183f0046c4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[0].PassportNo"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[0].ValidUntil"

2024-12-28T18:10:01.2634427+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[0].IssueByCountryId"

27f8be61-4b71-468e-8523-610b3455ae84
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[0].IssueBy"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[0].IsDefault"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[0].IsDeleted"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[1].Id"

6d3e5a1d-8b15-481e-8348-0d183f0046c4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[1].PassportNo"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[1].ValidUntil"

2024-12-28T18:10:01.2634427+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[1].IssueByCountryId"

27f8be61-4b71-468e-8523-610b3455ae84
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[1].IssueBy"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[1].IsDefault"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[1].IsDeleted"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="TSPRegistrationFocalId"

488f0155-b1d9-4ec2-bde2-0601d9df4094
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.