Mindsphere Rest Get with Filter

0
Iam trying a RestGet to get a filtered Asset from Mindsphere. https://xxxxxxxxxxxxxxxxxxx/api/assetmanagement/v3/assets?filter={"assetId":"7b3b784ea85d4c61a1f9f3a409dadbdf"} I got the error “Braces should be followed by a number of digit or another brace.” Perhaps somebody have an idea… I already try this version: https://xxxxxxxxxxxxxxxxxxx/api/assetmanagement/v3/assets?filter={{"assetId":"7b3b784ea85d4c61a1f9f3a409dadbdf"} I had no error but the RestGet gives no result back. BR Michael
asked
4 answers
2

Thanks a lot… UrlEncoder did it:

urlEncode('{"assetId": {"in":{"value": ["7b3b784ea85d4c61a1f9f3a409dadbdf", "fcb6fba4fcaa41e2bef1fc020bee6020"]}}}')

answered
0

Hi, which GET call exactly is this? I think in the Asster Respose call you also need the asset type and some other details-  https://xxxxxxxxx/api/assetmanagement/v3/assets?page=X&size=XX&filter=XXXXtypeIdXXXXXTypeXXXXXX

 

answered
0

I think your answer is here:

https://forum.mendix.com/link/questions/93532

answered
0

the filter parameter needs to be urlEncoded.

See also: https://forum.mendix.com/link/questions/66622

answered