Maximo Open Forum

 View Only

 Swap Asset

  • Administration
  • Integrations
Ajay Kotapati's profile image
Ajay Kotapati posted 10-31-2022 16:24
Hi,

We would like to Swap an asset using OSLC API.

What are the fields we have to include in the JSON file to  swap an asset ?

I have enabled non persistent attributes REPLACEASSETNUM and NEWLOCATION but getting error.
BMXAA4214E - An unknown error has occurred.


{
    "orgid""EAGLENA",
    "replaceassetnum":"13160",
    "siteid""BEDFORD",
    "newsite":"BEDFORD",
    "newlocation":"BPM3100"

}


URL:  http://hostname:9080/maximo/oslc/os/MXASSET/<ASSETID>/?lean=1


Prashant Sharma's profile image
Prashant Sharma
Hi Ajay,

REPLACEASSETNUM is not required if you are not changing ASSET# after swap.

For such actions, we need to pass wsmethod:<method name> in parameters but I am not able to find wsmethod for Swap Asset. If you can find one, then swapping the asset from API will work.

Thanks,
PS