Mobicontrol RESTApi - Device CustomAttributes

D
DanT
DHL Supply Chain Management GmbH

Hi, 

I'm attempting to use RESTApi to extract the custom attributes of a device based on the deviceId.  Is there any way to be specific about the custom attribute values that I can get? 

Currently the  /devices/{deviceId}/customAttributes will pull out everything which is not really necessary. 

Thanks

a year ago
SOTI MobiControl
ANSWERS
AW
Adam Williams
a year ago

Hi Dan,

Will GET /customattributes/{name} get you what you want ?

Thanks 

Adam

D
DanT
a year ago

Hi Adam, 

Thanks. 

That option doesn't give me the value of the attribute from a device.  It gives me information of the CustomAttribute itself. 

(eg, $type, Name, CustomAttributeDataType, EnumValues, PropogateToDevice) 

AW
Adam Williams
a year ago

I see the shortfall in my answer, apologies for wasting your time

R
Robert
a year ago

Hi Dan,

Have you tried with the /devices/search endpoint in the API?
Where you can use the filter parameter to search for properties the same way searching in the search field in the WebConsole?

If you for example create an filter for device id and the specific custom attributes you are interested in?

Regards
Robert

D
DanT
a year ago

Hi Richard, 

Thanks.  From what can see I would need to search on a 'known' value rather than get the value of all the attributes.  (if that makes sense) 

I was hoping to pull the 'unknown' values of a few specific attributes without having to pull them all. 

S
SKMOD@SOTI
a year ago

Hi DanT,

Thank you for posting on SOTI Pulse.

I'd like to extend my gratitude to Adam and Robert  for their valuable contributions and willingness to assist.

Could you please confirm if you are still facing the issue?

If necessary, please open a support ticket for further assistance.

If you have any more questions or concerns, feel free to reach out. Our team is dedicated to providing support and assistance.

Kind regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |