What is the correct way to save dashboard json for use in provisioning?

Using the “view json” and saving that json results in:

t=2018-02-05T22:18:57+0000 lvl=eror msg=“Cannot provision dashboard. Please remove the id property from the json file” logger=provisioning.dashboard type=file name=default

I removed both “id” and “uid” wasn’t sure which was needed, and that seemed to work. This doesn’t seem like the correct thng to do though.