Other: HVR API Improvement
I would recommend the "/api/latest/hubs/{hub}/definition" API for HVR return output that matches what is needed to import back into HVR. This would make the API functionality more useful. This would be extremely useful if the definition API could be used to export backup copies of the channel definition without manually doing it via the UI.
-
Hi John,
You can get the equivalent of an export file when you use a call like this:
curl -X GET "https:/<hvr-server>:<port>/api/latest/hubs/<hub name>/definition?channel=<channel name>&fetch=channels&fetch=loc_groups&fetch=members&fetch=channel_actions&fetch=tables&fetch=cols" \
-H "Authorization: Bearer <TOKEN>" \
-H "Accept: application/json"Substitute values for <hvr-server>, <port> and <channel name> and put in a value for <TOKEN>.
Hope this helps.
Mark.
-
Unfortunately this does not seem to work.
Please sign in to leave a comment.
Comments
2 comments