Forum Discussion
Joe_Tran
Advisor
6 years agoOn 8/5/2019 at 2:23 PM, Joe Williams said:For the record I tried to be cheeky and used Developer Tools to see what was being done to clone a dashboard and I can't even use that to get it working. Comes up with 'HTTP Status 415 – Unsupported Media Type'.
I was able to recently use the v2 REST API to clone dashboards.
- 1. HTTP GET your "template" dashboard via /dashboard/dashboards/{id}
- 2. Modify the "template" to suit your need for the new clone, and deleting the following keys: id, template, userPermission, shareable, (and maybe groupName and groupFullPath, I was cloning private dashboards, so these keys don't apply to my immediate use case)
- 3. HTTP POST your modified "template" at /dashboard/dashboards/{id}/clone
*insert disclaimer about undocumented REST API features*
Related Content
- 2 months ago
- 6 months ago
- 2 years ago
- 5 months ago
- 2 years ago