POST api/TSP/Focal/UpdatedPassports/{userId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

string

None.

Body Parameters

TSPFocalPassportsCreateUpdateViewModel
NameDescriptionTypeAdditional information
PassportList

Collection of PassportResultModel

None.

UserId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "PassportList": [
    {
      "Id": "74462800-7e6f-4e91-8d61-9dcf945d7ab9",
      "PassportNo": "sample string 2",
      "ValidUntil": "2024-12-28T18:09:58.2685209+00:00",
      "IssueByCountryId": "60a5c18f-5e3a-4592-aa97-3b700a8845d5",
      "IssueBy": "sample string 4",
      "IsDefault": true,
      "IsDeleted": true
    },
    {
      "Id": "74462800-7e6f-4e91-8d61-9dcf945d7ab9",
      "PassportNo": "sample string 2",
      "ValidUntil": "2024-12-28T18:09:58.2685209+00:00",
      "IssueByCountryId": "60a5c18f-5e3a-4592-aa97-3b700a8845d5",
      "IssueBy": "sample string 4",
      "IsDefault": true,
      "IsDeleted": true
    }
  ],
  "UserId": "46d3a609-98ae-4686-b527-866bbb73c1f0"
}

application/xml, text/xml

Sample:
<TSPFocalPassportsCreateUpdateViewModel 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>74462800-7e6f-4e91-8d61-9dcf945d7ab9</d2p1:Id>
      <d2p1:IsDefault>true</d2p1:IsDefault>
      <d2p1:IsDeleted>true</d2p1:IsDeleted>
      <d2p1:IssueBy>sample string 4</d2p1:IssueBy>
      <d2p1:IssueByCountryId>60a5c18f-5e3a-4592-aa97-3b700a8845d5</d2p1:IssueByCountryId>
      <d2p1:PassportNo>sample string 2</d2p1:PassportNo>
      <d2p1:ValidUntil>2024-12-28T18:09:58.2685209+00:00</d2p1:ValidUntil>
    </d2p1:PassportResultModel>
    <d2p1:PassportResultModel>
      <d2p1:Id>74462800-7e6f-4e91-8d61-9dcf945d7ab9</d2p1:Id>
      <d2p1:IsDefault>true</d2p1:IsDefault>
      <d2p1:IsDeleted>true</d2p1:IsDeleted>
      <d2p1:IssueBy>sample string 4</d2p1:IssueBy>
      <d2p1:IssueByCountryId>60a5c18f-5e3a-4592-aa97-3b700a8845d5</d2p1:IssueByCountryId>
      <d2p1:PassportNo>sample string 2</d2p1:PassportNo>
      <d2p1:ValidUntil>2024-12-28T18:09:58.2685209+00:00</d2p1:ValidUntil>
    </d2p1:PassportResultModel>
  </PassportList>
  <UserId>46d3a609-98ae-4686-b527-866bbb73c1f0</UserId>
</TSPFocalPassportsCreateUpdateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

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

74462800-7e6f-4e91-8d61-9dcf945d7ab9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[0].PassportNo"

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

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

60a5c18f-5e3a-4592-aa97-3b700a8845d5
--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"

74462800-7e6f-4e91-8d61-9dcf945d7ab9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PassportList[1].PassportNo"

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

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

60a5c18f-5e3a-4592-aa97-3b700a8845d5
--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="UserId"

46d3a609-98ae-4686-b527-866bbb73c1f0
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.