POST api/Common/Addresses/Update

Request Information

URI Parameters

None.

Body Parameters

AddressListUpdateViewModel
NameDescriptionTypeAdditional information
AddressList

Collection of AddressResultModel

None.

WorkerId

globally unique identifier

None.

ClinicId

globally unique identifier

None.

UserId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "AddressList": [
    {
      "Id": "46741e84-487c-4e38-849a-c83237d85765",
      "Street1": "sample string 2",
      "Street2": "sample string 3",
      "City": "sample string 4",
      "PostCode": "sample string 5",
      "IsDefault": true,
      "StateId": "b7f3227f-740f-4508-b6f9-1e7d5d9aada3",
      "State": "sample string 8",
      "CountryId": "f17092d2-5af9-477b-b5cc-bfd657ff2de6",
      "CountryName": "sample string 10",
      "IsDeleted": true
    },
    {
      "Id": "46741e84-487c-4e38-849a-c83237d85765",
      "Street1": "sample string 2",
      "Street2": "sample string 3",
      "City": "sample string 4",
      "PostCode": "sample string 5",
      "IsDefault": true,
      "StateId": "b7f3227f-740f-4508-b6f9-1e7d5d9aada3",
      "State": "sample string 8",
      "CountryId": "f17092d2-5af9-477b-b5cc-bfd657ff2de6",
      "CountryName": "sample string 10",
      "IsDeleted": true
    }
  ],
  "WorkerId": "473f92fb-e078-49c0-995e-fa62ff416767",
  "ClinicId": "e5ab435c-2c6d-4bd4-8870-9bd7f53406e5",
  "UserId": "f655ba27-b247-4749-b9c3-7a756c213180"
}

application/xml, text/xml

Sample:
<AddressListUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Common">
  <AddressList xmlns:d2p1="http://schemas.datacontract.org/2004/07/iP.Products.Domains.MySDS.Models">
    <d2p1:AddressResultModel>
      <d2p1:City>sample string 4</d2p1:City>
      <d2p1:CountryId>f17092d2-5af9-477b-b5cc-bfd657ff2de6</d2p1:CountryId>
      <d2p1:CountryName>sample string 10</d2p1:CountryName>
      <d2p1:Id>46741e84-487c-4e38-849a-c83237d85765</d2p1:Id>
      <d2p1:IsDefault>true</d2p1:IsDefault>
      <d2p1:IsDeleted>true</d2p1:IsDeleted>
      <d2p1:PostCode>sample string 5</d2p1:PostCode>
      <d2p1:State>sample string 8</d2p1:State>
      <d2p1:StateId>b7f3227f-740f-4508-b6f9-1e7d5d9aada3</d2p1:StateId>
      <d2p1:Street1>sample string 2</d2p1:Street1>
      <d2p1:Street2>sample string 3</d2p1:Street2>
    </d2p1:AddressResultModel>
    <d2p1:AddressResultModel>
      <d2p1:City>sample string 4</d2p1:City>
      <d2p1:CountryId>f17092d2-5af9-477b-b5cc-bfd657ff2de6</d2p1:CountryId>
      <d2p1:CountryName>sample string 10</d2p1:CountryName>
      <d2p1:Id>46741e84-487c-4e38-849a-c83237d85765</d2p1:Id>
      <d2p1:IsDefault>true</d2p1:IsDefault>
      <d2p1:IsDeleted>true</d2p1:IsDeleted>
      <d2p1:PostCode>sample string 5</d2p1:PostCode>
      <d2p1:State>sample string 8</d2p1:State>
      <d2p1:StateId>b7f3227f-740f-4508-b6f9-1e7d5d9aada3</d2p1:StateId>
      <d2p1:Street1>sample string 2</d2p1:Street1>
      <d2p1:Street2>sample string 3</d2p1:Street2>
    </d2p1:AddressResultModel>
  </AddressList>
  <ClinicId>e5ab435c-2c6d-4bd4-8870-9bd7f53406e5</ClinicId>
  <UserId>f655ba27-b247-4749-b9c3-7a756c213180</UserId>
  <WorkerId>473f92fb-e078-49c0-995e-fa62ff416767</WorkerId>
</AddressListUpdateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

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

46741e84-487c-4e38-849a-c83237d85765
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[0].Street1"

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

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[0].City"

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

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

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

b7f3227f-740f-4508-b6f9-1e7d5d9aada3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[0].State"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[0].CountryId"

f17092d2-5af9-477b-b5cc-bfd657ff2de6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[0].CountryName"

sample string 10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[0].IsDeleted"

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

46741e84-487c-4e38-849a-c83237d85765
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[1].Street1"

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

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[1].City"

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

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

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

b7f3227f-740f-4508-b6f9-1e7d5d9aada3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[1].State"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[1].CountryId"

f17092d2-5af9-477b-b5cc-bfd657ff2de6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[1].CountryName"

sample string 10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AddressList[1].IsDeleted"

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

473f92fb-e078-49c0-995e-fa62ff416767
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ClinicId"

e5ab435c-2c6d-4bd4-8870-9bd7f53406e5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="UserId"

f655ba27-b247-4749-b9c3-7a756c213180
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.