- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-10-27 03:05 PM
How to update Asset physical properties via API
Hello,
Since DCO/ITA does not push genome changes back downstream to the assets where the genome was used. I'm looking for information on how to update the height, width and depth for an asset through the API.
If I can get this accomplished I can push the updates to hundreds of assets with Python instead of doing it manually.
I tried this using the API docs.
Curl
curl -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' -d '[ { "op": "replace", "path": "depth", "value": "406.0" } ]' 'https://<HOST_NAME_REMOVED>/api/v8.1/assets/<ID_REMOVED>'
but I get this back.
Response Body
{
"code": 100114,
"message": "Failed to update property",
"details": "<ID_REMOVED>"
}
Any help is much appreciated.
- Labels:
-
IT Advisor
Link copied. Please paste this link to share this article on your social media post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-10-28 01:35 AM
HI!
I believe there are some limitations on properties editing.
I'm not sure, but it seems that you can not edit physical properties on assets as it can conflict each other when it installed in the racks.
You can't mass edit device dimensions with "Edit multiple items" tool as well.
By the way, you also need to add "/" before property name in "path" field value.
- Tags:
- english
Link copied. Please paste this link to share this article on your social media post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-10-29 04:14 AM
Hello David
The previously posted comments by Valentin are currently correct. The web UI and REST api's in the current versions of ITA do not support the ability to change the physical dimensions of the assets.
This capability is expected in a future release but we cannot share an estimated date as of now.
Regards
Greg Sterling
- Tags:
- english
Link copied. Please paste this link to share this article on your social media post.

