PowerShell, API and "Put"

tfra
Community Member


Hi

I'm having trouble getting powershell invoke-webrequest to work with the api, when I want to make "put" requests. Get/post request works fine.

"Put" request give me "status OK" / 200, but does not change any data.

Does anyone have a working example in powershell, where they are using "put" to change e.g. course publish/unpublish state or similar?

Best regards

Tommy