Update
PUT /rest/v1/objects/net_devices/:device_id/entries/:entry_id
Parameters
Name |
Description |
n_object_id
|
Entry
|
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
|
Request
Headers
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
Status
200 OK
Body
{
"entry": {
"n_object_id": 50183601,
"n_firm_id": 100,
"n_obj_state_id": 1040,
"vc_name": "Сетевой порт №1",
"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"
}
}