Forum Discussion

jhcannon's avatar
jhcannon
Frequent Visitor
4 years ago
Solved

Update Dataflow Refresh Schedule with API using PowerShell

I am copying a complete workspace to another using PowerShell.  I've pieced together several scripts I found and filled in where I was missing things.  All that is working as I expect.  Now, I need t...
  • jhcannon's avatar
    4 years ago

    Just in case anyone else happens upon this and is having the same issue, I have found the solution.

     

    I was missing the content-type in the header.

     

    $headers = @{
    'Authorization' = "$bearer"
    'Content-Type' = "application/json"
    }