Update customer equipment
PUT /rest/v1/subjects/customers/:customer_id/equipment/:id
Parameters
Name |
Description |
vc_inventory_number
|
Inventory number
|
additional_values
|
Additional values
|
Request
Headers
Route
PUT /rest/v1/subjects/customers/302/equipment/40236101
Body
{
"vc_inventory_number": "Testing vc_inv_no editing by REST API",
"additional_values": {
"NETSERV_CDRForceFinishTimeout": 10
},
"equipment": {
"vc_inventory_number": "Testing vc_inv_no editing by REST API",
"additional_values": {
"NETSERV_CDRForceFinishTimeout": 10
}
}
}
Response
Headers
Status
200 OK
Body
{
"equipment": {
"n_object_id": 40236101,
"n_good_id": 40224501,
"n_firm_id": 100,
"n_obj_state_id": 1040,
"vc_name": "Порт №migrator",
"vc_code": "migrator",
"vc_code_add": null,
"vc_rem": null,
"n_main_object_id": 40223001,
"n_owner_id": 302,
"vc_serial_number": null,
"vc_inventory_number": "Testing vc_inv_no editing by REST API",
"d_warranty_end": null,
"additional_values": {
"NETSERV_CDRForceFinishTimeout": "10",
"NETSERV_OldCDRDeleteTimeout": null,
"ObjPar_CreateExDataCollJob": null
},
"actions": {
"show": "http://example.org/rest/v1/objects/net_devices/40236101",
"edit": "http://example.org/rest/v1/objects/net_devices/40236101/edit"
}
},
"navigation": {
"self": "http://example.org/rest/v1/subjects/customers/302/equipment/40236101",
"customer": "http://example.org/rest/v1/subjects/customers/302",
"equipment": "http://example.org/rest/v1/subjects/customers/302/equipment"
}
}