Set a Contact's Address
put
/public/v1/contacts/{contact}/addressA contact holds one address. When it has none, send address_1, suburb, state and
postcode to add one. When it has one, send only the fields to change: fields left out
keep their current values, except that changing address_1 clears address_3, which the
API does not take. Changing the street, suburb, state or postcode without sending lat and
lng clears the coordinates, which are then looked up again from the new address. Send
lat and lng together. Answers 200 with the address either way.
contactstringrequiredThe contact UUID
Body
application/jsonaddress_1stringmax length 255stateenum<string>Available options:ACTNSWNTQLDSATASVICWApostcodenumberaddress_2string | nullmax length 255suburbstringmax length 255latnumber | nulllngnumber | nulltraditional_place_namestring | nullmax length 255detailsstring | nullmax length 255
Response
200application/jsonAddressResource
dataobjectrequired▶Show 13 child attributesHide child attributes
idstringrequiredExample:a1d2d3r4-e5s6-47s8-9a0b-1c2d3e4f5a6baddress_1stringrequiredExample:12 Harbour View Driveaddress_2string | nullrequiredExample:Unit 4address_3string | nullrequiredExample:Building Bsuburbstring | nullrequiredExample:Lavender Baystateenum<string>requiredAvailable options:ACTNSWNTQLDSATASVICWApostcodestringrequiredExample:2060countrystringrequiredExample:Australialatstring | nullrequiredExample:-33.8447lngstring | nullrequiredExample:151.2094traditional_place_namestring | nullrequiredExample:Gadigal Countrydetailsstring | nullrequiredExample:Enter via the side gateformattedstringrequiredExample:Gadigal Country, 12 Harbour View Drive, Unit 4, Building B, Lavender Bay, NSW, 2060
401Unauthenticated403Authorization error404Not found422Validation error