UpdateAssetInLibrary
This method can be used for the following: Update an asset in the library (must have Assets Module enabled in your tenant configuration!);
Parameters
The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.
Headers
Query
id (string)
Identifier for the asset.
Example:
name (string) (optional)
Name of the asset.
Example:
type (string) (optional)
Type of asset. Must be one of the following: Web App, API, Mobile, Cloud, Infrastructure, Network, Wifi, Hardware, Other or another custom type enabled in Global Configuration.
Example:
external_id (string) (optional)
External id for the asset. For example id associated with the asset in Configuration Management Database.
Example:
asset_library_ids (array of strings) (optional)
Asset libraries to map asset against.
Example:
details (string) (optional)
Details or notes relating to the asset.
Example:
groups (array of strings) (optional)
List of AttackForge Groups to associate the asset with. Must include the Group Id.
Example:
is_deleted (boolean) (optional)
Whether asset is deleted or not.
Example:
custom_fields (array of objects) (optional)
Custom fields. Must include a key and value. Key must be unique and letters, numbers and underscores only.
For more information visit https://support.attackforge.com/attackforge-enterprise/getting-started/custom-fields-and-forms#using-custom-fields-with-apis
Example:
Example
The following example is a cURL request to update an asset in the library.
Request
Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
Response
Response contains a status.
Last updated