Maximo Open Forum

 View Only
  • 1.  RESTAPI Response members

    Posted 01-05-2026 16:55
    Edited by Appu nair 01-05-2026 17:02

    in my Maximo install if I issue  this RESTCALL https://demo.manage.demo.apps.sno-cluster.nairkn.com/maximo/api/os/mxapiasset?oslc.select=siteid,assetnum,doclinks&oslc.where=assetnum=26200&lean=1&apikey=******** I get reults but in te returned members it drops the maximo context  see example

    so I have set mxe.oslc.restwebappurl,mxe.oslc.webappurl,mxe.rest.webappurl,mxe.adminurl all to https://demo.manage.demo.apps.sno-cluster.nairkn.com/maximo in spite of all of these the returned members come as 

    "doclinks": {
                    "href": "https://demo.manage.demo.apps.sno-cluster.nairkn.com/api/os/mxapiasset/_MjYkVERk9SRA--/doclinks"
                }  note if i click on that it will say no root can be found so if i manually insert maximo it works https://demo.manage.demo.apps.sno-cluster.nairkn.com/maximo/api/   if I am doing this wrong is there a correct way to set this context so i dont have to prepend maximo to every restapi call
    Environment is MAS9 on RHOS 4.16.37


    #Administration
    #Customizations
    #Integrations
    #MaximoApplicationSuite

    ------------------------------
    Appu nair
    APPECM
    ------------------------------



  • 2.  RE: RESTAPI Response members
    Best Answer

    Posted 01-05-2026 18:53

    mxe.oslc.webappurl is the only system property you would need to change for this. The property is supposed to end in /maximo/oslc/ though, not /maximo, which is why you're likely encountering the issue. This is because it needs to replace the trailing /oslc/ with /api/.

    I wouldn't use it here, but in situations that you expect a different URL to be provided then the system property value, you can add a query parameter to all requests of relativeuri=1. This simplifies the href being returned. 

    In 9.1 of MAS, there is a setting (enabled by default) to set these via server bundle properties. 



    ------------------------------
    Steven Shull
    Naviam
    ------------------------------



  • 3.  RE: RESTAPI Response members

    Posted 01-06-2026 10:28

    thanks it is working as we want it



    ------------------------------
    Appu nair
    APPECM
    ------------------------------



Featured Podcast
Episode 1 is live: IBM Maximo Application Suite 9.2

Watch or listen to Steven Shull and Phil Runion discuss the practical MAS 9.2 updates Maximo teams should know.

Watch the Podcast
MORE by Naviam Episode 1 cover
Watch the latest episode