POST api/UserRegistrations/{userRegistrationId}/Address
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userRegistrationId | globally unique identifier |
Required |
Body Parameters
UserRegistrationAddressCreateViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Street1 | string |
None. |
|
Street2 | string |
None. |
|
City | string |
None. |
|
PostCode | string |
None. |
|
IsDefault | boolean |
None. |
|
StateId | globally unique identifier |
None. |
|
CountryId | globally unique identifier |
None. |
|
IsDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "13d7cdfc-c925-43e5-bba6-8fe6b4109b6b", "Street1": "sample string 2", "Street2": "sample string 3", "City": "sample string 4", "PostCode": "sample string 5", "IsDefault": true, "StateId": "1fdc9d6a-392e-439a-9b19-b07c2c9bf7f0", "CountryId": "6f7ef545-95d8-4dfe-995b-dba9b9a028b3", "IsDeleted": true }
application/xml, text/xml
Sample:
<UserRegistrationAddressCreateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Common.ViewModels"> <City>sample string 4</City> <CountryId>6f7ef545-95d8-4dfe-995b-dba9b9a028b3</CountryId> <Id>13d7cdfc-c925-43e5-bba6-8fe6b4109b6b</Id> <IsDefault>true</IsDefault> <IsDeleted>true</IsDeleted> <PostCode>sample string 5</PostCode> <StateId>1fdc9d6a-392e-439a-9b19-b07c2c9bf7f0</StateId> <Street1>sample string 2</Street1> <Street2>sample string 3</Street2> </UserRegistrationAddressCreateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Id" 13d7cdfc-c925-43e5-bba6-8fe6b4109b6b --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Street1" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Street2" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="City" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PostCode" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IsDefault" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="StateId" 1fdc9d6a-392e-439a-9b19-b07c2c9bf7f0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CountryId" 6f7ef545-95d8-4dfe-995b-dba9b9a028b3 --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.