How can I replace a dashboard by ID ?

Comments

5 comments

  • Avatar
    Hamza Jap-Tjong

    Hi Tim,

    I never tried it out, so I do not know if it works right out of the box or that there will be any complications. What you can do is do a api-call with the ID of the new dashboard and copy/download the JSON result shown.

    Perhaps alter the JSON a little bit (OID for example) and than do a another patch api-call but then on the old dashboard ID and input the JSON you've downloaded previously. 

    This should overwrite the current dashboard with the new dashboard, but it should keep the same ID

    0
    Comment actions Permalink
  • Avatar
    Ravid Paldi

    Hi Tim, 

     

    Following Hamza Jap-Tjong suggestion, we actually did do it several times and it works fairly good. 

    The flwo you should take is: 

    1. Export the new dashboard's .dash file

    2. Open the .dash file and run a search & replace for the new OID of the dashboard to the OID of the original dashboard. 

    3. Import the modified .dash file and choose to override the existing dashboard. 

    I suggest you'll do a "dry run" on a dummy dashboard to make sure you understand the flow and that it works for you. 

    NOTE: Eitherway, keep a copy of the orignal dashboard's .dash file so in case something goes wrong you'll have an easy role back option. 

    Good luck and feel free to reach out if you need further assistance,

    Ravid

    Paldi Solutions 

    ravid@paldi.solutions 

    0
    Comment actions Permalink
  • Avatar
    Hamza Jap-Tjong

    I would follow Ravid's method. Looks way easier :)

    0
    Comment actions Permalink
  • Avatar
    Timothy Roy

    Thank you Ravid, that worked!

    and thank you Hamza Jap-Tjong for the ideas

    0
    Comment actions Permalink
  • Avatar
    Ravid Paldi

    Your'e welcome. 

     

    Happy to help (: 

    0
    Comment actions Permalink

Please sign in to leave a comment.