Hi Juris,
Yes, i have tried the GET method with the same URI and I am getting the response and there is no issue with GET, I am only facing issue when using POST or PUT
Any help would be really.appreciated
Original Message:
Sent: 5/12/2025 2:56:00 AM
From: Juris Flugins
Subject: RE: Not Valid Site Error - When Updating the data through POSTMAN
Does user, which You are using for posting, has access to that site?
Does simple GET query work on that object structure?
------------------------------
Juris Flugins
Technical expert
AS Sadales tikls
Rīga
------------------------------
Original Message:
Sent: Fri May 09, 2025 05:53 AM
From: Chaitanya Kumar R
Subject: Not Valid Site Error - When Updating the data through POSTMAN
Original Message:
Sent: 5/9/2025 1:45:00 AM
From: Bartosz Marchewka
Subject: RE: Not Valid Site Error - When Updating the data through POSTMAN
Hi Chaitanya,
Could you please double check if your POST request contains this property: lean=1
as well.
curl --location 'https://localhost/maximo/api/os/mxapilocations?lean=1' /
------------------------------
Bartosz Marchewka
IBM Maximo Consultant
AFRY
Original Message:
Sent: Thu May 08, 2025 11:40 PM
From: Chaitanya Kumar R
Subject: Not Valid Site Error - When Updating the data through POSTMAN
Hi,
I have created a custom object structure to update the data and configured the Object Structure authorization and Security.
I have given the headers as
Content Type - application/json
x-method-override - SYNC
patchtype - MERGE
When i am trying to update the data of the records, i am getting below error
{
"oslc:Error": {
"oslc:statusCode": "400",
"errorattrname": "siteid",
"spi:reasonCode": "BMXAA4153E",
"errorobjpath": "operations",
"correlationid": null,
"oslc:message": "BMXAA4153E - null is not a valid site. Enter a valid Site value as defined in the Organization Application.",
"oslc:extendedError": {
"oslc:moreInfo": {
"rdf:resource": "http://localhost/maximo/oslc/error/messages/BMXAA4153E"
}
}
}
}
Raw Data -
{
"orgid":"US001",
"siteid":"US13",
"location": "98088",
"operatingcosttotal": "223469"
}
Any advise will be really helpful.
Thanks
------------------------------
Chaitanya Kumar R
------------------------------