Orchestrator Report API error

I Was trying to use the Report orchestrator api

https://cloud.uipath.com/emidsgkpbokr/EmidsTechnologyDefault/odata/RobotLogs/UiPath.Server.Configuration.OData.Reports()?$top=2

but getting below error

{

"message": "An organization unit is required for this action.",

"errorCode": 1101,

"resourceIds": null

}

Can anyone please help me out

Hi @Nikhil_Jaitak2

Welcome to forum

Did u done all configurations to n orchestrator prior to.using API ?

I had the same problem

You have to add the necessary Headers

Regards

yes @NIVED_NAMBIAR but the problem was headers i was passing into parameters instead of headers