or
what am i doing wrong,
trying to post to the UploadReport model report /api/reportserver/v2/reports
@{ "ModelState"= @{
"Name"="rpt1";
"Description"="uploaded on $(Get-Date -DisplayHint Date)";
"CategoryId"="$($catId)";
"ReportFile"=@{
"Name"="rpt1";
"FileName"="c:\x\rpt1.trdp";
"MediaType"="application/x-zip-compressed";
"Buffer"="[System.IO.File]::ReadAllBytes( "c:\x\rpt1.trdp" ) )" }
}
}
{"Message":"The request is invalid.","ModelState":{"model.Name":["The Name field is required."],"model.CategoryId":["The CategoryId field is