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| required."],"model.ReportFile":["The ReportFile field is required."]}}
{
"Name": "rpt",
"Description": "uploaded on 08/08/2023",
"CategoryId": "8fi46djt0jr",
"ReportFile": {
"Name": "rpt",
"FileName": "rpt.trdp",
"MediaType": "application/x-zip-compressed", "Buffer": "80 75 ++++" } }
Anyone still work these forums? this is driving me nuts
| required."],"model.ReportFile":["The ReportFile field is required."]}}