People

Create an address for a person

Changed on

Add a new address to an existing person. Street line1 is optional; city, state, and ZIP alone are accepted. Country defaults to US, where a supplied ZIP must be five digits or ZIP+4.

post/v1/people/{person_id}/addresses

Request

  • Base URL
    https://api.slant.app
  • URL
    https://api.slant.app/v1/people/{person_id}/addresses
  • Auth
    HTTP bearer

Request body

line1string
line2string
citystring
statestring
zipstring
country_codestring
address_type'home' | 'work' | 'mailing' | 'other'
is_primaryboolean

Example request

{
  "line1": "123 Main St",
  "line2": "Apt 4B",
  "city": "New York",
  "state": "NY",
  "zip": "10001",
  "country_code": "US",
  "address_type": "home",
  "is_primary": true
}

Response

address created

idstring
person_idstring
line1string
line2string
citystring
statestring
zipstring
country_codestring
address_typestring
is_primaryboolean

Changes

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      removed the invalid_json enum value from the response property for the response status

    • info

      response property detail list-of-types was narrowed by removing types array from media type application/json of response 400