Updating the assets contained in an inventory is the same request for Internet Alerts – Routing and Internet Alerts – Performance APIs.
NOTE: If you have both Internet Alerts – Routing and Internet Alerts – Performance, inventories are shared between the two products. If you update the inventory assets, the new inventory contents will be available for both products.

Associated API Topics
Delete an Asset
Delete the Portfolio

Syntax

Click to view all Internet Alerts – Routing API Resources
Click to view all Internet Alerts – Performance API Resources
PUT portfolio/inventories/{Inventory}/assets — Updates assets in an inventory.

cURL example updating assets in one inventory :

$ curl -u username:password -X PUT -d @replace-assets.json https://api.renesys.com/portfolio/inventories/{Inventory}/assets/

Where {Inventory} stands in for the name of the Inventory to update and @replace-assets.json contains:

[
  {
    "id ": "1.2.3.0/24",
    "name":"data center"
  },
  {
    "id":"1.2.3.17", 
    "name":"primary web server"
  }
  {
    "id":"432", 
  }
]
Arguments:
Content of @replace-assets.json:

id – string – Required. Uniquely identifies the asset.
assetType – string – Identifies which type of asset the information refers.
Valid values:
prefix
asn
ip
name – string – convenient, human-readable description of this asset.
comment – string – convenient, human-readable description of this asset.

Response:

HTTP/1.1 204 No Content     
Date: Wed, 01 Apr 2015 20:47:02 GMT     
Server: TornadoServer/4.0.2     
Content-Length: 0     
Content-Type: text/html; charset=UTF-8      
Vary: Accept-Encoding     
Connection: close