Update person address
PUT /rest/v1/subjects/persons/:person_id/addresses/:id
Parameters
Name |
Description |
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
Route
PUT /rest/v1/subjects/persons/78419101/addresses/78458201
Body
{
"address": {
"vc_rem": "Test address remark"
}
}
Response
Headers
Status
200 OK
Body
{
"address": {
"n_address_id": 78473101,
"n_addr_type_id": 1006,
"n_par_addr_id": null,
"vc_code": "кв. 1",
"vc_visual_code": "г. Зеленоград, ул. Юности, д. 11, кв. 1",
"vc_address": null,
"vc_flat": "1",
"n_region_id": 50158401,
"vc_entrance_no": null,
"n_floor_no": null,
"n_firm_id": null,
"n_subj_address_id": 78458201,
"n_subj_addr_type_id": 5016,
"n_addr_state_id": 1029,
"vc_rem": "Test address remark",
"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/78458201",
"customer": "http://example.org/rest/v1/subjects/customers/78419101",
"addresses": "http://example.org/rest/v1/subjects/persons/78419101/addresses"
}
}
}