assets

Delete an asset

Delete an asset.

Soft-deletes the asset and clears what would otherwise dangle off it -- scope pivots, network-service links, draft findings and the stored attachment -- through :class:DeleteAssetWorkflow. Submitted findings and scan-asset snapshots are kept. Calling AssetService.soft_delete here instead would flip the asset's own flag and leave every dependent behind.

Args: asset_id (int): Primary key of the asset. db (AsyncSession): Request-scoped database session. context (ActiveContext): Resolved caller identity and scope.

Returns: SuccessResponse: The legacy delete envelope, echoing the removed id.

Raises: NotFoundError: No such asset is visible to the caller.

delete/v1/assets/{asset_id}

Request

  • Base URL
    https://api.ethiack.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Path parameters

asset_idinteger required

Response

Successful Response

codeinteger required
descriptionstring required
successboolean

Changes

No recorded changes to this operation across all 1 revision of this API.