Original Message:
Sent: Tue May 27, 2025 03:24 AM
From: Hannu Niittymaa
Subject: Cannot change asset data with JSON API
Hi, you can use also BULK value in x-method-override. Haven't try it by myself, but more info can be found:
https://ibm-maximo-dev.github.io/maximo-restapi-documentation/crud/bulk
------------------------------
Hannu Niittymaa
IBM
Helsinki
------------------------------
Original Message:
Sent: Tue May 27, 2025 02:40 AM
From: Sangaiah Nimmala
Subject: Cannot change asset data with JSON API
Hi Hannu,
Thanks for the information. It was working now. Everytime we need to give encrypted value like (_MTE0NTAvQkVERk9SRA--) instead of Assetnum in the URL. If we are going to update bulk records how we will do that with this encrypted values?
------------------------------
Sangaiah Nimmala
Original Message:
Sent: Tue May 27, 2025 01:00 AM
From: Hannu Niittymaa
Subject: Cannot change asset data with JSON API
Hi, I think that x-method-override and Patch type should be in headers, not in params. Also try to use mxapiasset object structure instead of mxasset.
------------------------------
Hannu Niittymaa
IBM
Helsinki
Original Message:
Sent: Tue May 27, 2025 12:02 AM
From: Sangaiah Nimmala
Subject: Cannot change asset data with JSON API
Hi Kushal,
Thanks for responding..Even i tried with PUT but i am getting the same error
------------------------------
Sangaiah Nimmala
Original Message:
Sent: Mon May 26, 2025 11:16 PM
From: Kushal Desai
Subject: Cannot change asset data with JSON API
Try with PUT instead of POST.
------------------------------
Kushal Desai
Senior Consulting Manager
Toronto ON
Original Message:
Sent: Mon May 26, 2025 10:02 AM
From: Sangaiah Nimmala
Subject: Cannot change asset data with JSON API
Hi Hannu,
Even i am getting the same error. As suggested in your rersponse i have updated x-method-override and Patch type in Params instead of header. But i am still getting the same error message. Please find the below rest api url
https://masdev.manage.inst1.apps.itz-bdtfpi.infra01-lb.dal14.techzone.ibm.com/maximo/api/os/mxasset/_MTE0NTAvQkVERk9SRA--?x-method-override=PATCH&patchtype=MERGE&properties=*
Please find the attached screen shot. Can you please help us on what we are missing to get the output?
------------------------------
Sangaiah Nimmala
Original Message:
Sent: Wed November 30, 2022 02:05 AM
From: Hannu Niittymaa
Subject: Cannot change asset data with JSON API
I finally got it working. I had x-method-override and patchtype only in request's parameters, not in headers as they should be.
------------------------------
Hannu Niittymaa
IBM
Helsinki