When I send input to PowerShell put request it throws an internal error.
This is the response I got:
"message": "Internal Error"
"status": "failed"
The code snippet is as follows:
$input_data=@"
{
"share": {
"users": [
{
"id": 3
}
]
}
}
"@
$postParams = @{ INPUT_DATA=$input_data; format="json" }
$response = Invoke-WebRequest -Uri $url -Method PUT -Body $postParams