POST api/Common/Passports/Update
Request Information
URI Parameters
None.
Body Parameters
PassportListUpdateViewModelName | Description | Type | Additional information |
---|---|---|---|
PassportList | Collection of PassportResultModel |
None. |
|
WorkerId | globally unique identifier |
None. |
|
UserId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "PassportList": [ { "Id": "b4765b47-7a1b-4fb9-a38d-3c0ca458fa03", "PassportNo": "sample string 2", "ValidUntil": "2024-12-28T18:09:59.2413757+00:00", "IssueByCountryId": "25631491-e435-4517-a924-08da3e0b35d2", "IssueBy": "sample string 4", "IsDefault": true, "IsDeleted": true }, { "Id": "b4765b47-7a1b-4fb9-a38d-3c0ca458fa03", "PassportNo": "sample string 2", "ValidUntil": "2024-12-28T18:09:59.2413757+00:00", "IssueByCountryId": "25631491-e435-4517-a924-08da3e0b35d2", "IssueBy": "sample string 4", "IsDefault": true, "IsDeleted": true } ], "WorkerId": "6bc6228f-92fb-49ea-9b13-886b3f7841f8", "UserId": "e7a31b5c-92de-450f-8187-7c70c6e04fc3" }
application/xml, text/xml
Sample:
<PassportListUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Common"> <PassportList xmlns:d2p1="http://schemas.datacontract.org/2004/07/iP.Products.Domains.MySDS.Models"> <d2p1:PassportResultModel> <d2p1:Id>b4765b47-7a1b-4fb9-a38d-3c0ca458fa03</d2p1:Id> <d2p1:IsDefault>true</d2p1:IsDefault> <d2p1:IsDeleted>true</d2p1:IsDeleted> <d2p1:IssueBy>sample string 4</d2p1:IssueBy> <d2p1:IssueByCountryId>25631491-e435-4517-a924-08da3e0b35d2</d2p1:IssueByCountryId> <d2p1:PassportNo>sample string 2</d2p1:PassportNo> <d2p1:ValidUntil>2024-12-28T18:09:59.2413757+00:00</d2p1:ValidUntil> </d2p1:PassportResultModel> <d2p1:PassportResultModel> <d2p1:Id>b4765b47-7a1b-4fb9-a38d-3c0ca458fa03</d2p1:Id> <d2p1:IsDefault>true</d2p1:IsDefault> <d2p1:IsDeleted>true</d2p1:IsDeleted> <d2p1:IssueBy>sample string 4</d2p1:IssueBy> <d2p1:IssueByCountryId>25631491-e435-4517-a924-08da3e0b35d2</d2p1:IssueByCountryId> <d2p1:PassportNo>sample string 2</d2p1:PassportNo> <d2p1:ValidUntil>2024-12-28T18:09:59.2413757+00:00</d2p1:ValidUntil> </d2p1:PassportResultModel> </PassportList> <UserId>e7a31b5c-92de-450f-8187-7c70c6e04fc3</UserId> <WorkerId>6bc6228f-92fb-49ea-9b13-886b3f7841f8</WorkerId> </PassportListUpdateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PassportList[0].Id" b4765b47-7a1b-4fb9-a38d-3c0ca458fa03 --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:59.2413757+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PassportList[0].IssueByCountryId" 25631491-e435-4517-a924-08da3e0b35d2 --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" b4765b47-7a1b-4fb9-a38d-3c0ca458fa03 --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:59.2413757+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PassportList[1].IssueByCountryId" 25631491-e435-4517-a924-08da3e0b35d2 --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="WorkerId" 6bc6228f-92fb-49ea-9b13-886b3f7841f8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="UserId" e7a31b5c-92de-450f-8187-7c70c6e04fc3 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, multipart/form-data
Sample:
Sample not available.