UPDATE a Hardware Asset Component
This API is used to update the details of the hardware tab's component.
note
You can perform CRUD operations for all the components of Computer Hardware and its sub- asset types.
URL: https://{{server-url}}/api/v1/asset/{id}/discoveryComponent
Header
Key | Description |
---|---|
Authorization | Bearer {access token obtained after authorization} |
Body:
You would be sending a JSON request that will update the details in the respective component of the Hardware tab. Some of the key-value pairs are compulsory, notice the description of each.
The key-value pair will be based on the selected component. :::
{
"type": "Computer System",
"componentType": "computer_system_component",
"domainName": "GROUP",
"manufacturerName": "LENOVO",
"modelName": "ThinkPad",
"systemType": "x64-based PC",
"pcSystemType": "Mobile",
"uuid": "C29D9E4C-2ED7-11B2-A85C-F10290C5E61C",
"bootUpStatus": "Normal boot",
"numberOfLogicalProcessors": 12,
"numberOfProcessors": 1,
"deviceStatus": "Ok",
"partOfDomain": "No",
"userName": "ROSY-CORDEIRO\\Rosy paul Cordeiro",
"description": "AT/AT COMPATIBLE",
"computerSystemName": "ROSY-CORDEIRO"
}
Example (Request and Response)
Request
curl --location --request PATCH 'https://172.16.11.148/api/v1/asset/3/discoveryComponent'
Response
{
"type": "Computer System",
"id": 3,
"assetId": 1,
"componentType": "computer_system_component",
"domainName": "GROUP",
"manufacturerName": "LENOVO",
"modelName": "ThinkPad",
"systemType": "x64-based PC",
"pcSystemType": "Mobile",
"uuid": "C29D9E4C-2ED7-11B2-A85C-F10290C5E61C",
"bootUpStatus": "Normal boot",
"numberOfLogicalProcessors": 12,
"numberOfProcessors": 1,
"deviceStatus": "Ok",
"partOfDomain": "No",
"userName": "ROSY-CORDEIRO\\Rosy paul Cordeiro",
"description": "AT/AT COMPATIBLE",
"computerSystemName": "ROSY-CORDEIRO"
}