Log In

Set a Contact's Address

put/public/v1/contacts/{contact}/address

A 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.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • contactstringrequired

    The contact UUID

Body

application/json
  • address_1stringmax length 255
  • stateenum<string>
    Available options:ACTNSWNTQLDSATASVICWA
  • postcodenumber
  • address_2string | nullmax length 255
  • suburbstringmax length 255
  • latnumber | null
  • lngnumber | null
  • traditional_place_namestring | nullmax length 255
  • detailsstring | nullmax length 255

Response

200application/json

AddressResource

  • dataobjectrequired
    ▶Show 13 child attributes
    • idstringrequired
      Example:a1d2d3r4-e5s6-47s8-9a0b-1c2d3e4f5a6b
    • address_1stringrequired
      Example:12 Harbour View Drive
    • address_2string | nullrequired
      Example:Unit 4
    • address_3string | nullrequired
      Example:Building B
    • suburbstring | nullrequired
      Example:Lavender Bay
    • stateenum<string>required
      Available options:ACTNSWNTQLDSATASVICWA
    • postcodestringrequired
      Example:2060
    • countrystringrequired
      Example:Australia
    • latstring | nullrequired
      Example:-33.8447
    • lngstring | nullrequired
      Example:151.2094
    • traditional_place_namestring | nullrequired
      Example:Gadigal Country
    • detailsstring | nullrequired
      Example:Enter via the side gate
    • formattedstringrequired
      Example:Gadigal Country, 12 Harbour View Drive, Unit 4, Building B, Lavender Bay, NSW, 2060
  • 401Unauthenticated
  • 403Authorization error
  • 404Not found
  • 422Validation error