This method updates organization address
Name | Description |
---|---|
person[n_par_addr_id] | Parent address |
person[vc_code] | Code |
person[vc_visual_code] | Code to display |
person[vc_address] | Address as string |
person[vc_flat] | Flat |
person[n_region_id] | Region |
person[vc_entrance_no] | Entrance |
person[n_floor_no] | Floor |
person[c_fl_main] | Main address |
person[n_subj_addr_type_id] | Address purpose |
person[d_begin] | Start date |
person[d_end] | End date |
person[vc_rem] | Commentary |
person[n_bind_addr_id] | Bound address |
person[n_addr_state_id] | Address state |
person[vc_intercom_code] | Intercom code |
Accept: application/json Content-Type: application/json
PUT /rest/v2/subjects/organizations/92652001/addresses/92652401
{ "address": { "n_address_id": 92652301, "n_par_addr_id": null, "vc_code": "кв. 2", "vc_visual_code": "г. Зеленоград, ул. Юности, д. 11, кв. 2", "vc_address": null, "vc_flat": "2", "n_region_id": 50158401, "vc_entrance_no": null, "n_floor_no": null, "c_fl_main": "Y", "n_subj_address_id": 92652401, "n_subj_addr_type_id": 1016, "d_begin": null, "d_end": "2020-02-02T03:00:00+03:00", "vc_rem": "Commentary Updated", "n_bind_addr_id": null, "n_addr_state_id": 1029, "vc_intercom_code": "#439" } }
Content-Type: application/json; charset=utf-8
200 OK
{ "address": { "n_address_id": 92652301, "n_addr_type_id": 1006, "n_par_addr_id": null, "vc_code": "кв. 2", "vc_visual_code": "г. Зеленоград, ул. Юности, д. 11, кв. 2", "vc_address": null, "vc_flat": "2", "n_region_id": 50158401, "vc_entrance_no": null, "n_floor_no": null, "n_firm_id": null, "n_subj_address_id": 92652401, "n_subj_addr_type_id": 1016, "n_addr_state_id": 1029, "vc_rem": "Commentary Updated", "n_bind_addr_id": null, "d_begin": null, "d_end": "2020-02-02T03:00:00+03:00", "c_fl_main": "Y", "vc_intercom_code": "#439", "navigation": { "self": "http://example.org/rest/v2/subjects/organizations/92652001/addresses/92652401", "customer": "http://example.org/rest/v2/subjects/customers/92652001", "addresses": "http://example.org/rest/v2/subjects/organizations/92652001/addresses" } } }