We need to change the AttributeName of a custom attribute that was defined incorrectly. Currently it is "Incorrect_1" We would like it to be "Correct_1" - how can we achieve this?
http://<DA>:8581/rest/customattributedefinition/12345
<CustomAttributeDefinition version="1.0.0">
<ID>12345</ID>
<Label>Correct 1</Label>
<Storage>
<AttributeName>Incorrect_1</AttributeName>
<Type>String</Type>
<ItemType>Device</ItemType>
</Storage>
<Description>Correct 1</Description>
<Hidden>true</Hidden>
<Internal>
<AttributeQName>{http://im.ca.com/inventory}DeviceCustomAttributes.Incorrect_1</AttributeQName>
<ColumnName>custd_Incorrect_1</ColumnName>
</Internal>
</CustomAttributeDefinition>
Only the label, description and hidden fields are updateable. The rest should be locked
Release : 21.2
Component :
In this case, since the fields that the customer would like to update are Attribute Name, Attribute Q Name and Column, these cannot be updated
1. Create another custom attr then and use it. Just never use Custom_3
2. Set Custom_3 Hidden to true to make sure it doesn't appear in UI for Inventory views.
The <Internal> section should never be touched. That's how DA stores the column in PC and DA databases