Adding an Asset - API Issue

Hello All,

Please help me on this, I am trying to create asset through orchestrator API, I did everything fine but still its showing Error :+1:

Given URL and Headers:

Body :

Result Error :

Any idea about this error?

Srenivasan Kannan

Hi @SrenivasanKanna

I believe you also have to add X-UIPATH-OrganizationUnitId to your header.



yeah, since I am confused about where should I get X-UIPATH-OrganizationUnitId.

@SowmyaLeo @Palaniyappan
Srenivasan Kannan

The odata/OrganizationUnit has been depreciated so use the api /odata/Folders to get the id. For an example the default folder for me is simply ‘2’ which is the value for X-UIPATH-OrganizationUnitId.