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. 10 | How Naviam DataStudio Makes Data Imports Easier with Lee Daley

Steven Shull and Lee Daley explore how Naviam DataStudio helps IBM Maximo teams simplify bulk data imports, validate information before loading, and improve data quality and management.

MORE by Naviam Episode 10: How Naviam DataStudio Makes Data Imports Easier with Lee Daley
Watch Episode 10
Also available: Ep. 9 | Best Maximo Resources to Stay Informed