/build/static/layout/Breadcrumb_cap_w.png

KACE API - Updating a Machine's labels through API

Hi everyone,

I would like to assign a label to a machine trough the API.

Until now I've managed to GET machines with their label, using "https://<mykaceappliance>/api/inventory/machines?shaping=label standard"

I would like now to SET them, and there I always run into 500 errors. My latest try was to have a Json body looking as such :

{"Machines":[{"label":{"ID":"228"}}]}

There doesn't seem to be documentation on the body syntax for a PUT request (the documentation says "See Appendix B for an example of the request body format" but I can't find any appendix).

Would anyone be able to help me with this ?


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: Stepan 8 months ago
White Belt
1

Top Answer

Hi Seril, 

There's no way to put a label to machine via API. I did a lot of experiments with it and hadn't succeeded. Here's example thread with reply: https://www.itninja.com/question/kace-api-updating-a-machines-labels-through-api
Since Quest doesn't really develop and even support API I'd suggest that it won't appear in near future. Sad since we also needed it. 

Posted by: SeRil 8 months ago
White Belt
0

Hi Stepan,

Thank you very much for your answer. I also experimented a bit and ended up asking to save some time, it is good to know someone had the same issue. It's indeed sad but we will have to cope with it then I guess :(

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ