Object addresses API

Update object address

PUT /rest/v1/objects/net_devices/:device_id/addresses/:address_id

Parameters

Name Description
n_obj_address_id Address to equipment bind
n_address_id Address
n_addr_type_id Address type
n_par_addr_id Parent address
n_bind_addr_id Bound address
n_obj_addr_type_id Bound address type
n_region_id Region
d_begin Start date
d_end End date
n_firm_id Firm
vc_code Code
vc_address Address as string
vc_entrance_no Entrance
n_floor_no Floor
vc_flat Flat
n_mask IP subnet mask
c_fl_is_real_subnet Flag of real IP address
vc_intercom_code Intercom code
vc_rem Remark

Request

Headers

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

Route

PUT /rest/v1/objects/net_devices/50182701/addresses/50184301

Body

{
  "address": {
    "vc_rem": "Testing vc_rem editing by REST API"
  }
}

Response

Headers

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

Status

200 OK

Body

{
  "address": {
    "n_address_id": 50158501,
    "n_addr_type_id": 1006,
    "vc_addr_type_name": "Обычный адрес",
    "n_par_addr_id": null,
    "vc_code": null,
    "vc_address": null,
    "vc_flat": null,
    "n_region_id": 50158401,
    "vc_entrance_no": null,
    "n_floor_no": null,
    "n_firm_id": null,
    "n_bind_addr_id": null,
    "n_obj_address_id": 50184301,
    "n_obj_addr_type_id": 6016,
    "d_begin": "2012-10-06T01:27:37+04:00",
    "d_end": null,
    "vc_rem": "Testing vc_rem editing by REST API",
    "vc_intercom_code": null,
    "actions": {
      "edit": "http://example.org/rest/v1/objects/net_devices/50182701/addresses/50184301/edit"
    },
    "navigation": {
      "self": "http://example.org/rest/v1/objects/net_devices/50182701/addresses/50184301",
      "net_device": "http://example.org/rest/v1/objects/net_devices/50182701",
      "addresses": "http://example.org/rest/v1/objects/net_devices/50182701/addresses"
    }
  }
}