Person addresses API

Create person address

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

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":"\u0420\u043e\u0441\u0441\u0438\u044f, \u0433. \u041c\u043e\u0441\u043a\u0432\u0430, \u0433. \u0417\u0435\u043b\u0435\u043d\u043e\u0433\u0440\u0430\u0434","n_addr_state_id":1029}}

Response

Headers

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

Status

201 Created

Body

{"address":{"n_address_id":88436001,"n_addr_type_id":1006,"n_par_addr_id":null,"vc_code":"\u0420\u043e\u0441\u0441\u0438\u044f, \u0433. \u041c\u043e\u0441\u043a\u0432\u0430, \u0433. \u0417\u0435\u043b\u0435\u043d\u043e\u0433\u0440\u0430\u0434","vc_visual_code":"\u0433. \u0417\u0435\u043b\u0435\u043d\u043e\u0433\u0440\u0430\u0434, \u0420\u043e\u0441\u0441\u0438\u044f, \u0433. \u041c\u043e\u0441\u043a\u0432\u0430, \u0433. \u0417\u0435\u043b\u0435\u043d\u043e\u0433\u0440\u0430\u0434","vc_address":"\u0420\u043e\u0441\u0441\u0438\u044f, \u0433. \u041c\u043e\u0441\u043a\u0432\u0430, \u0433. \u0417\u0435\u043b\u0435\u043d\u043e\u0433\u0440\u0430\u0434","vc_flat":null,"n_region_id":40230201,"n_entrance_no":null,"n_floor_no":null,"n_firm_id":null,"n_subj_address_id":88436101,"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,"actions":{"edit":"http://example.org/rest/v1/subjects/persons/78419101/addresses/88436101/edit"},"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"}}}