People

Update an address

Changed on

Update an existing address for a person

patch/v1/people/{person_id}/addresses/{id}

Request

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

Request body

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

Example request

{
  "line1": "456 Oak Ave",
  "line2": "Apt 2B",
  "city": "Boulder",
  "state": "CO",
  "zip": "80301",
  "country_code": "US",
  "address_type": "work",
  "is_primary": true
}

Response

address updated

idstring
person_idstring
line1string
line2string
citystring
statestring
zipstring
country_codestring nullable
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