Maximo Open Forum

 View Only
  • 1.  Maximo REST API accepting random attributes

    Posted 11-15-2024 18:09

    I have a custom table called ABC. It has only one attribute called A.

    When someone sends data to it using the rest API (oslc) with an extra attribute which is not present in it. Maximo does not throw error it accepts the packet and creates a record.

    e.g. 
    {
    "A" : 123,
    "B" : 789
    }
    Maximo adds a new row in ABC table with col A having value of 123. While the non existent column B is ignored.


    #MaximoApplicationSuite

    ------------------------------
    Rana Ahmed
    Maximomize
    ------------------------------


  • 2.  RE: Maximo REST API accepting random attributes

    Posted 11-18-2024 23:53
    Edited by Maycon Belfort 11-18-2024 23:53

    Not sure how you're sending the POST message, but try adding the lean=1 to your URL.

    POST: https://maximo_url:port/maximo/oslc/os/MXOBJECTSTRUCTURE?lean=1

    BODY:

    {

     "A": 123,

    "B": 789

    }



    ------------------------------
    Maycon Belfort
    BPD Zenith
    IBM Champion 2024
    ------------------------------



Newest Episode
Ep. 2 | Adding a QR Code to a BIRT Report

Watch Steven Shull walk through how to add a QR code to a BIRT report and make Maximo reporting more scannable, connected, and useful in the field.

MORE by Naviam Episode 2 cover
Watch Episode 2
Also available: Ep. 1 | IBM Maximo Application Suite 9.2