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 ?
Answers (2)
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.