POST api/UserRegistrations/{userRegistrationId}/Passport
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userRegistrationId | globally unique identifier |
Required |
Body Parameters
UserRegistrationPassportCreateViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
PassportNo | string |
None. |
|
ValidUntil | date |
None. |
|
IssueByCountryId | globally unique identifier |
None. |
|
IsDefault | boolean |
None. |
|
IsDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "e0ad3bb2-0a6a-4f99-b6e3-d22485699a01", "PassportNo": "sample string 2", "ValidUntil": "2024-12-28T18:10:00.215507+00:00", "IssueByCountryId": "523468e2-55fe-49a5-97ae-6b20075fee4c", "IsDefault": true, "IsDeleted": true }
application/xml, text/xml
Sample:
<UserRegistrationPassportCreateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Common.ViewModels"> <Id>e0ad3bb2-0a6a-4f99-b6e3-d22485699a01</Id> <IsDefault>true</IsDefault> <IsDeleted>true</IsDeleted> <IssueByCountryId>523468e2-55fe-49a5-97ae-6b20075fee4c</IssueByCountryId> <PassportNo>sample string 2</PassportNo> <ValidUntil>2024-12-28T18:10:00.215507+00:00</ValidUntil> </UserRegistrationPassportCreateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Id" e0ad3bb2-0a6a-4f99-b6e3-d22485699a01 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PassportNo" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ValidUntil" 2024-12-28T18:10:00.2155070+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IssueByCountryId" 523468e2-55fe-49a5-97ae-6b20075fee4c --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IsDefault" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IsDeleted" True --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, multipart/form-data
Sample:
Sample not available.