I am able to create Aspects, Asset Types and Assets using AssetManagement PUT request.
However when I fetch the assets using "/api/assetmanagement/v3/assets", I only get assets that were manually created using Asset Manager Application, the Assets created using APIs are not listed in response.
Solved! Go to Solution.
I have created thousands of assets programmatically using POST, and dozens of asset types and aspect types using PUT, using following base URLs:
I was able to view these instantly from my program using GET requests. Therefore I can tell you that it can be done.
You wrote that you used PUT. Please remember that for creating assets you need to use POST.
You can supply the 'size' parameter to request how many assets to list in one page, e.g. 1000. If you have more than that many assets you can then flip through pages, as specified by you in the 'page' parameter. To know how many assets match your query you can look at the 'page' response field, where the subfields 'totalElements' and 'totalPages' are most relevant.
Have a look at the API doc for more details.
Yes, this is the documented behaviour as mentioned here. By the way, the MindSphere documentation contains much useful information. As they used to say back at university, "an hour in the library could save you a month in the lab".