Endpoint Reference

POST Address

Adds a new address for the indicated userId as that type.

Request URL

https://{school}.myschoolapp.com/api/user/addressforuser?t={token}

Request headers

HeaderRequiredTypeDescription
Content-TypestringMedia type of the body sent to the API.

Request body

A valid XML/JSON address. AddressLine1 is required to successfuly create an address.

PropertyRequiredTypeDescription
Typeint The ID of the type of address to return results for. The type is returned as typeID in the GET Address Types call.
JSON
{
    "AddressLine1": "1234 Blackbaud lane",
    "AddressLine2": "",
    "AddressLine3": "",
    "City": "Somewhere",
    "StateShort": "NC",
    "ZipCode": "12345",
    "Country": "United States",
    "Region": "",
    "Province": "",
    "IsMailingAddress": false,
    "LabelSalutation": "",
    "FormalSalutation": "",
    "HouseholdSalutation": "",
    "IsPrimary": false,
    "LastModifyDate": "4/17/2018 5:09 PM",
    "UserId": 2716843,
    "TypeId": 1005,
    "AddressTypeLink": [
        {
            "TypeId": 1005,
            "UserId": 2716843,
            "IsPrimary": false,
            "SortOrder": 0,
            "Shared": false
        }
    ],
    "LastModifyUserId": 2716843
}

Response 200

A Response Message containing the address ID of the new address.

JSON
{
  "Message": "2351734"
}

Address Properties

NameDescriptionType
AddressIDinteger
AddressLine1string
AddressLine2string
AddressLine3string
BoardingOrHome Acceptable values are B or Hstring
Citystring
Countrystring
IsMailingAddressbool
IsPrimarybool
Provincestring
Regionstring
StateShortstring
ZipCodestring

AddressType Properties

NameDescriptionType
Typestring
TypeIDinteger
isPrimarybool
NameDescriptionType
UserIDinteger
AddressIDinteger
isPrimarybool
Typestring
TypeIDinteger