Forum Discussion
2 years ago
Thanks Stuart. One of the libraries I was using is “argparse” from the CLI.
My test script right now looks something like:
./script.py --primary ”Folder Name” --location ”123 somewhere ln, here, there 11111” --custom “building:Some Building” --custom “department:Some Department” --custom “role:Some Role”
When I push via the SDK to the api.add_device_group() function, I would basically take the --location and all the --custom ones set via the CLI and “build” the customProperties that I want to POST in the body of the api call (along with some more common , one off variables I scrape).
I’ll mess with the listofDicts as you illustrated and go from there.
Thanks for your help.