Person addresses API

Create person address

POST /rest/v1/subjects/persons/:person_id/addresses/

Parameters

Name Description
address[n_addr_type_id] Address type
address[n_addr_state_id] Address state
address[n_subj_addr_type_id] Address purpose
address[vc_address] Address as string
address[n_floor_no] Floor
address[n_region_id] Region
address[c_fl_main] Main address
address[vc_intercom_code] Intercom code
address[vc_entrance_no] Entrance
address[vc_flat] Flat
address[n_bind_addr_id] Bound address
address[n_par_addr_id] Parent address
address[n_obj_address_id] Address to equipment bind
address[d_begin] Start date
address[d_end] End date
address[vc_rem] Commentary

Request

Headers

Accept: application/json
Content-Type: application/json

Route

POST /rest/v1/subjects/persons/78419101/addresses/

Body

{
  "address": {
    "n_addr_type_id": 1006,
    "n_subj_addr_type_id": 1016,
    "vc_address": "Россия, г. Москва, г. Зеленоград",
    "n_addr_state_id": 1029
  }
}

Response

Headers

Content-Type: application/json; charset=utf-8

Status

201 Created

Body

{
  "address": {
    "n_address_id": 93734701,
    "n_addr_type_id": 1006,
    "n_par_addr_id": null,
    "vc_code": "Россия, г. Москва, г. Зеленоград",
    "vc_visual_code": "г. Зеленоград, Россия, г. Москва, г. Зеленоград",
    "vc_address": "Россия, г. Москва, г. Зеленоград",
    "vc_flat": null,
    "n_region_id": 40230201,
    "vc_entrance_no": null,
    "n_floor_no": null,
    "n_firm_id": null,
    "n_subj_address_id": 93734801,
    "n_subj_addr_type_id": 1016,
    "n_addr_state_id": 1029,
    "vc_rem": null,
    "n_bind_addr_id": null,
    "d_begin": null,
    "d_end": null,
    "c_fl_main": "Y",
    "vc_intercom_code": null,
    "navigation": {
      "self": "http://example.org/rest/v1/subjects/persons/78419101/addresses/",
      "customer": "http://example.org/rest/v1/subjects/customers/78419101",
      "addresses": "http://example.org/rest/v1/subjects/persons/78419101/addresses"
    }
  }
}