Learn how to use the Raptor Comply API to add new cyber assets, update asset details, and remove decommissioned equipment from your compliance inventory.Cyber assets are the individual devices and software instances - PLCs, RTUs, HMIs, EMS servers, and more - that are classified under NERC CIP cyber systems in Raptor Comply. Unlike facilities, control centers, and cyber systems (which are currently read-only via the API), cyber assets support full CRUD. That means you can manage your entire compliance inventory programmatically: add new equipment as it’s commissioned, keep records current as configurations change, and retire assets when they’re decommissioned.
Before you begin
You’ll need the following before making any write requests:
- API key - generated by your organization admin in Raptor Comply. See Authentication.
- Cyber System ID - the
idof the cyber system you want to associate an asset with. Retrieve this fromGET /cyber-systems. Cyber system IDs follow the formatcs_01....
List cyber assets
Retrieve all cyber assets in your organization withGET /cyber-assets:
Get a single cyber asset
To retrieve one specific asset, pass itsid to GET /cyber-assets/{id}:
id does not exist in your organization, the API returns a 404 Not Found.
Create a cyber asset
UsePOST /cyber-assets to add a new asset to your compliance inventory. The request body must include name, cyber_system_id, and asset_type:
201 Created with the full asset object, including the newly assigned id:
id - you’ll use it to update or delete this asset later.
Update a cyber asset
UsePATCH /cyber-assets/{id} to modify an existing asset. The PATCH method is a partial update: you only need to include the fields you want to change. Any fields you omit remain unchanged.
For example, to rename an asset:
updated_at timestamp.
Delete a cyber asset
UseDELETE /cyber-assets/{id} to permanently remove a decommissioned asset from your compliance inventory:
204 No Content with no response body.
Walkthrough: add a new cyber asset end to end
Get your Cyber System ID
Call Find the cyber system you want to classify the new asset under and copy its
GET /cyber-systems to retrieve the list of cyber systems in your organization:id (format: cs_01...).Create the cyber asset
Send a
POST /cyber-assets request with the asset details and the Cyber System ID from the previous step:Capture the returned ID
The
201 Created response includes the new asset’s id. Save this value in your CMDB or inventory system as an external reference to Raptor Comply.