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
------------------------------
Original Message:
Sent: 11-15-2024 18:09
From: Rana Ahmed
Subject: Maximo REST API accepting random attributes
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
------------------------------