Create
POST /rest/v1/objects/net_devices/:device_id/entries
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
|
Commentary
|
vc_serial
|
Serial number
|
vc_inv_no
|
Inventory number
|
d_warranty_till
|
Warranty expiration date
|
n_main_object_id
|
Main object
|
Request
Headers
Route
POST /rest/v1/objects/net_devices/78067601/entries
Body
{
"entry": {
"vc_code": "Test_entry_1564127294",
"vc_name": "Test entry 1564127294",
"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
Status
201 Created
Body
{
"entry": {
"n_object_id": 93729501,
"n_firm_id": 100,
"n_obj_state_id": 2040,
"vc_name": "Test entry 1564127294",
"vc_code": "Test_entry_1564127294",
"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/93729501",
"edit": "http://example.org/rest/v1/objects/net_devices/78067601/entries/93729501/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"
}
}