Update person address attributes
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": {
"n_floor_no": 13,
"n_region_id": 50158401,
"d_begin": "2018-01-01T03:00:00+03:00",
"d_end": "2018-02-02T03:00:00+03:00",
"vc_address": "Moscow",
"vc_rem": "Test address remark",
"c_fl_main": "N",
"vc_intercom_code": "Intercom code",
"n_addr_state_id": 4003,
"n_subj_addr_type_id": 1016,
"vc_entrance_no": "5",
"vc_flat": "4",
"n_bind_addr_id": 55658501
}
}
Response
Headers
Status
200 OK
Body
{
"address": {
"n_address_id": 78473101,
"n_addr_type_id": 1006,
"n_par_addr_id": null,
"vc_code": "Moscow, кв. 4, п. 5, этаж 13",
"vc_visual_code": "г. Зеленоград, ул. Юности, д. 11, кв. 4, п. 5, этаж 13, Moscow",
"vc_address": "Moscow",
"vc_flat": "4",
"n_region_id": 50158401,
"vc_entrance_no": "5",
"n_floor_no": 13,
"n_firm_id": null,
"n_subj_address_id": 78458201,
"n_subj_addr_type_id": 1016,
"n_addr_state_id": 4003,
"vc_rem": "Test address remark",
"n_bind_addr_id": null,
"d_begin": "2018-01-01T03:00:00+03:00",
"d_end": "2018-02-02T03:00:00+03:00",
"c_fl_main": "N",
"vc_intercom_code": "Intercom code",
"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"
}
}
}