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. 3 | Work Order Role-Based Application

Watch Steven Shull explore how Work Order Role-Based Applications in IBM Maximo can simplify work management, improve usability, and help teams focus on the right work order information.

MORE by Naviam Episode 3 cover
Watch Episode 3
Also available: Ep. 2 | Adding a QR Code to a BIRT Report