We have some custom attributes in our environment and we are using a REST call to set the values:
E.G.
curl -kv -u admin -X PUT -H 'Content-type: application/xml' -d "<DeviceCustomAttributes version='1.0.0'><MyCustomAttribute>NewValue</MyCustomAttribute></DeviceCustomAttributes>" http://DA:8581/rest/devices/customattributes/12228135
Enter host password for user 'admin':
> Accept: */*
> Content-type: application/xml
> Content-Length: 93
>
* upload completely sent off: 93 out of 93 bytes
< HTTP/1.1 200 OK
* Connection #0 to host DA left intact
<failure />[root@HOST]#
DX NetOps :: All Supported Versions
The REST call and connection was successful, so we get the 200 OK
But
The PUT/UPDATE failed, in this case due to a bad itemid, so we get the <failure/>
Verify the correct itemid for the device