Modifying a Custom Attribute on an device by API

Solved Locked
NL
Nicolas LE BIHAN
SYSTEME U CENTRALE NATIONALE

I need to use the API :

  • PUT /devices/{deviceId}/customAttributes/{customAttributeId}

This API requires the CustomAttribute ID as a parameter and I don't know where to find it. I tested the GET /customattributes API to get the ID, but it's not part of the response. 
I also poked around in the DataBase, but I don't see a table name that allows me to direct my search to the CustomAttributes to retrieve the IDs.

Has anyone experienced this problem?

4 years ago
SOTI MobiControl
ANSWERS
RS
Rafael Schäfer
4 years ago

Don't you think that this is just the name of the customAttribute?

I mean you just use the same in the script, so i would think of just using the name but until now, didn't worked with the api yet.

Solution
NL
Nicolas LE BIHAN
4 years ago

Thank you Rafael,
Indeed the parameter "customAttributeId" is waiting for the name Custom Attribute...
(the description of this parameter is badly explained and confusing from my point of view).

RS
Rafael Schäfer
4 years ago

Hmm, in my api documentation it says {name} maybe it's different regarding the version you use even in the documentation.