Log In

Update a Participant Address

put/public/v1/participant-addresses/{participantAddress}

Fields left out of the request keep their current values, with two exceptions. 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. lat and lng are sent together. Making an address primary turns the current primary into an other address, and the only primary address cannot become another type. Set update_future_supports to also move the participant's future supports at this address to the updated one, which changes the state their public holidays are matched on.

  • Authorizationstringrequired

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

  • participantAddressstringrequired

    The participant address 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
  • typeenum<string>
    Available options:otherpostalprimary
  • labelstring | nullmax length 255
  • update_future_supportsboolean

Response

200application/json

ParticipantAddressResource

  • dataobjectrequired
    ▶Show 15 child attributes
    • idstringrequired
      Example:a1d2d3r4-e5s6-47s8-9a0b-1c2d3e4f5a6b
    • typeenum<string> | nullrequired

      A replaced primary address is kept as other, so filter on this rather than assuming one row per type.

      Available options:otherpostalprimary
    • labelstring | nullrequired
      Example:Previous Primary Address
    • 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