Update an address

Request Information

Parameters

NameDescriptionAdditional information
id The id of the address

Define this parameter in the request URI.

model The updated address model

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "StreetNr": "sample string 2",
  "Zip": "sample string 3",
  "City": "sample string 4",
  "Country": "sample string 5",
  "CompanyId": 6
}

application/xml, text/xml

Sample:
<AddressRest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Name>sample string 1</Name>
  <StreetNr>sample string 2</StreetNr>
  <Zip>sample string 3</Zip>
  <City>sample string 4</City>
  <Country>sample string 5</Country>
  <CompanyId>6</CompanyId>
</AddressRest>

Response Information

Returns: The address model

Response body formats

application/json, text/json

Sample:
{
  "Uri": "/addresses/1",
  "Id": 1,
  "CompanyUri": "/companies/2",
  "Name": "Leveringsadres",
  "StreetNr": "Example street 1",
  "Zip": "1000",
  "City": "Brussels",
  "Country": "BEL",
  "CompanyId": 2
}

application/xml, text/xml

Sample:
<AddressRestGet xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Name>Leveringsadres</Name>
  <StreetNr>Example street 1</StreetNr>
  <Zip>1000</Zip>
  <City>Brussels</City>
  <Country>BEL</Country>
  <CompanyId>2</CompanyId>
  <Uri>/addresses/1</Uri>
  <Id>1</Id>
  <CompanyUri>/companies/2</CompanyUri>
</AddressRestGet>