Log In

Add an Address to a Participant

post/public/v1/participants/{participant}/addresses

A participant's first address must be primary, and a participant has at most one postal address. Send lat and lng together, or neither to have them looked up from the address. Adding a primary address turns the current primary into an other address. Set update_future_supports to also move the participant's future supports at the old primary address to the new 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.

  • participantstringrequired

    The participant UUID

Body

application/json
  • address_1stringrequiredmax length 255
  • stateenum<string>required
    Available options:ACTNSWNTQLDSATASVICWA
  • postcodenumberrequired
  • address_2string | nullmax length 255
  • suburbstringrequiredmax length 255
  • latnumber | null
  • lngnumber | null
  • traditional_place_namestring | nullmax length 255
  • detailsstring | nullmax length 255
  • typeenum<string>required
    Available options:otherpostalprimary
  • labelstring | nullmax length 255
  • update_future_supportsboolean

Response

201application/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