Maximo Open Forum

 View Only

 _rootonly not working

Jump to  Best Answer
  • Integrations
Robert Matthews's profile image
Robert Matthews posted 10-07-2025 17:26

Greetings all,

I'm trying to use a multi object OS to support a header object GET to support a list-type view in a custom web app and also a full GET of data from child object data for one record, a la mx power apps. I cannot get _rootonly to limit the GET to just the top level object attributes. This with MAM 7.6.1.3. 
I am using a URL with this format, ie, not an mbo end point. If anyone has a working example and can supply a sample full message, that'd be helpful. Note I do need to get multiple records, not just one. I understand I can achieve similar by storing an oslc.select but was interested in the _rootonly method. 

oslc/os/OSNAME etc

-----------

Thanks Steven for the reply.Good to know not to keep chasing that. :-)

For any other folks who find it, this (albeit rather old) document had this text, which seems to be inaccurate, or I have been misinterpreting it. 

https://www.ibm.com/docs/en/SSLKT6_7.6.0.8/com.ibm.mif.doc/pdf_mif.pdf 

"_rootonly Boolean If true, only the main object of the object structure
is serialized. Valid only for the object structure
resource type."

It's not mentioned here, https://ibm-maximo-dev.github.io/maximo-restapi-documentation/, and maybe just relying on that source these days is the wiser choice. 

Steven Shull's profile image
Steven Shull  Best Answer

_rootonly was a concept in the legacy REST API (IE /maxrest) rather than the newer JSON API (/maximo/oslc or /maximo/api). Selecting attributes is done via the oslc.select in the newer JSON API.