PUT v1/bunits/{bunitId}/addresses/{addressId}

Updates an existing address.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bunitId The ID of the business unit of the address integer

Required

addressId the ID of the address to be updated integer

Required

Body Parameters

the updated address object

Address
NameDescriptionTypeAdditional information
Name The name of the location of the address
string

None.

Street Streetname for address
string

None.

Street2 Optional second street for address making it possible to add more information
string

None.

ZipCode ZIP code of address
string

None.

City City of the address
string

None.

ContactPerson The contact person at the given address
string

None.

Phone A contact phone number.
string

None.

Emails A contact email address.
Collection of string

None.

Type Type of address. Type can be billing, main office or other. The billing address will be used in billing information and is default address.
AddressType

Required.

Country Country of address
Country

Required.

Id A unique ID for the object.
integer

Read-only.

CreatedDate Time and date the object was created.
date

Read-only.

ArchivedDate Time and date the object was or is going to be archived.

Unarchived objects have no value in ArchivedDate
date

Read-only.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml, text/xml

Sample:
<Address xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>8</Id>
  <CreatedDate>2024-05-20T17:58:43.6070661+02:00</CreatedDate>
  <ArchivedDate>2024-05-20T17:58:43.6070661+02:00</ArchivedDate>
  <Name>sample string 1</Name>
  <Street>sample string 2</Street>
  <Street2>sample string 3</Street2>
  <ZipCode>sample string 4</ZipCode>
  <City>sample string 5</City>
  <ContactPerson>sample string 6</ContactPerson>
  <Phone>sample string 7</Phone>
  <Emails>
    <string>sample string 1</string>
    <string>sample string 2</string>
  </Emails>
  <Type>
    <Id>1</Id>
    <CreatedDate>2024-05-20T17:58:43.6070661+02:00</CreatedDate>
    <ArchivedDate>2024-05-20T17:58:43.6070661+02:00</ArchivedDate>
  </Type>
  <Country>
    <Id>3</Id>
    <CreatedDate>2024-05-20T17:58:43.6070661+02:00</CreatedDate>
    <ArchivedDate>2024-05-20T17:58:43.6070661+02:00</ArchivedDate>
    <Name>sample string 1</Name>
    <Code>sample string 2</Code>
  </Country>
</Address>

Response Information

Resource Description

The updated address

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.