Hi all,
Is it possible to retrieve "group id" only from JSON right after I used POST API to duplicate and add group into PRTG? As I would like to add sub group into the group and after that add device by GET API.
Modified on 2025-06-10 16:05:01 +0200
Hi all,
Is it possible to retrieve "group id" only from JSON right after I used POST API to duplicate and add group into PRTG? As I would like to add sub group into the group and after that add device by GET API.
Hi yychai97,
You can receive the group ID from a certain group via an API call filtered with the group name (which you define during the clone process). I recommend to use an API call like this one:
/api/table.json?content=groups&output=json&columns=objid,group,name&filter_name=*Group Name*
(you need to replace "*Group Name*)
Please note that you can create such a API call via the "PRTG HTTP API: XML Table Query Builder". This query builder is located under "Setup > PRTG API > Live Data"
Best Regards,
Moritz Heller
Paessler Tech Support Team
Oct, 2019 - Permalink