Hello,
I'm looking for advice and possibly examples on how to perform asset move/issue operations using Maximo API's. After some experiments I could make moving an asset between operating locations and from an operating location to a storeroom using OSLC API like this:
curl --location 'https://hostname/maximo/oslc/os/MXASSET/6/?lean=1' \
--header 'apikey: ...' \
--header 'Content-Type: application/json' \
--header 'x-method-override: PATCH' \
--header 'PATCHTYPE: MERGE' \
--data '{
"orgid": "ORG01",
"siteid": "S01",
"newsite": "S01",
"newlocation": "L1001"
}'
I've also seen an example of REST API call like this but I could not make this one work at all. If anyone uses this successfully, please share a working example:
curl --location 'https://hostname/maximo/rest/mbo/asset/6?_format=json&_compact=1&_urs=0' \
--header 'apikey: ...' \
--header 'x-http-method-override: moveSingleAsset' \
--data '~asset=this&~newLocation=L1001&~newSite=S01'
I've got stuck with issuing an asset from a storeroom to an operating location. Ideally I'm looking for a REST API/OSLC API approach but doing it via Java API is also an option as long as it relies on Maximo logic and updates the history in the assettrans
table correctly. I already know about Asset.issueAsset(…)
Java method but could not make it work yet so a working example would be great. And again it'd be cleaner to use a REST API/OSLC API instead so I'm looking for some help here.
------------------------------
Ivan Lagunov
Head of R&D
ZNAPZ B.V.
------------------------------