Missing Required Key in Body of PUT /odata/Assets({Key}) Edit an asset on UiPath.WebApi 18.0

Jaeyoung Jung - Nov 1 - - Dev Community

PROBLEM

While Editing an asset with orchestrator API, even though put all required keys in body(AssetDto), 404 error occurred with “Asset does not exist”.

Image description


CAUSE

In the body(AssetDto), Name and ValueScope are marked as required keys. However Id is also required key.

Image description


SOLUTION

Add Id in the body.

Image description

. . . .