Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  MXAPIASSETSPARE REST API

    Posted 05/26/26 07:35 AM

    Hi, question about MXAPIASSETSPARE API. BP is trying to add spare part to asset using MXAPIASSETSPARE and noticed that Maximo creates an asset, if it does not exists. Should MXAPIASSETSPARE just inform that asset does not exist instead of creating it? Is there a workaround, how to prevent asset creation?



    ------------------------------
    Hannu Niittymaa
    IBM
    Helsinki
    ------------------------------


  • 2.  RE: MXAPIASSETSPARE REST API

    Posted 06/17/26 03:34 AM

    Hi Hanna,

    How are you sending the request through the API? There may be an option to use a different HTTP PATCH verb, depending on your integration requirements.

    Alternatively, you could use an Object Structure inbound processing automation script. This would allow you to validate the inbound request and generate warnings or errors when the required conditions are not met.

    Regards,



    ------------------------------
    Vijayalakshmi Mane
    Technical Consultant
    Bentley Systems Netherlands B.V.
    sHertogenbosch, The Netherlands
    ------------------------------



  • 3.  RE: MXAPIASSETSPARE REST API

    Posted 06/17/26 05:28 AM

    What action do you have in POST headers? If it will be only update, then it will not create object 



    ------------------------------
    Andrey Ilinskiy
    Handz.on
    https://www.on.de/
    München
    ------------------------------



  • 4.  RE: MXAPIASSETSPARE REST API

    Posted 06/18/26 05:27 AM

    Because ASSET is the top level object if one does not exist it will create it.

    Only sending on update may resolve your issue but probably won't provide user with an appropriate message e.g asset does not exist, no spare part created.

    I am not sure how you are sending this data in but as suggested before an inbound object structure automation script to pass back error would make most sense.

    If you are unsure about the different methods you can use for integration script IBM have a link - https://ibm-maximo-dev.github.io/maximo-autoscript-documentation/integration/osevents/  



    ------------------------------
    Joey Baah
    ------------------------------