Entries API

Update entry

PUT /rest/v1/objects/net_devices/:device_id/entries/:entry_id

Parameters

Name Description
n_object_id Entry
n_catalog_item_id Catalog item
n_firm_id Firm
n_obj_state_id Object state
vc_name Name
vc_code Code
vc_code_add Additional code
vc_rem Remark
vc_serial Serial number
vc_inv_no Inventory number
d_warranty_till Warranty expiration date
n_main_object_id Main object

Request

Headers

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

Route

PUT /rest/v1/objects/net_devices/50182701/entries/50183601

Body

{"entry":{"vc_inv_no":"Testing vc_inv_no editing by REST API"}}

Response

Headers

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

Status

200 OK

Body

{"entry":{"n_object_id":50183601,"n_firm_id":100,"n_obj_state_id":1040,"vc_name":"\u0421\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u043e\u0440\u0442 \u21161","vc_code":"1","vc_code_add":null,"vc_rem":null,"vc_serial":null,"vc_inv_no":"Testing vc_inv_no editing by REST API","d_warranty_till":null,"n_main_object_id":50182701,"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/50182701/entries/50183601","edit":"http://example.org/rest/v1/objects/net_devices/50182701/entries/50183601/edit"}},"navigation":{"self":"http://example.org/rest/v1/objects/net_devices/50182701/entries/50183601","net_device":"http://example.org/rest/v1/objects/net_devices/50182701","entries":"http://example.org/rest/v1/objects/net_devices/50182701/entries"}}