Entries API

Create entry

POST /rest/v1/objects/net_devices/:device_id/entries

Request

Headers

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

Route

POST /rest/v1/objects/net_devices/78067601/entries

Body

{"entry":{"vc_code":"Test_entry_1474853181","vc_name":"Test entry 1474853181","vc_code_add":"Test entry additional code","vc_serial":"test123","vc_inv_no":"1","n_catalog_item_id":40249001,"n_firm_id":100,"n_obj_state_id":2040,"n_main_object_id":78067601}}

Response

Headers

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

Status

201 Created

Body

{"entry":{"n_object_id":88433501,"n_firm_id":100,"n_obj_state_id":2040,"vc_name":"Test entry 1474853181","vc_code":"Test_entry_1474853181","vc_code_add":"Test entry additional code","vc_rem":null,"vc_serial":"test123","vc_inv_no":"1","d_warranty_till":null,"n_main_object_id":78067601,"n_catalog_item_id":40249001,"additional_values":{"GOOD_C_FL_Param_PortSec":null,"GOOD_N_Param_Units":null,"GOOD_C_FL_Param_PortTagged":null},"actions":{"show":"http://example.org/rest/v1/objects/net_devices/78067601/entries/88433501","edit":"http://example.org/rest/v1/objects/net_devices/78067601/entries/88433501/edit"}},"navigation":{"self":"http://example.org/rest/v1/objects/net_devices/78067601/entries","net_device":"http://example.org/rest/v1/objects/net_devices/78067601","entries":"http://example.org/rest/v1/objects/net_devices/78067601/entries"}}