How save data on backend using PUT ?

0
I am trying to send json to backend using PUT request, but facing error. Data:- { "testID": "P1-T01", "description": "Visual inspection of panel enclosure for physical damage", "method": "Visual", "expectedResult": "No visible damage. Paint finish intact RAL 7035", "actualResult": "", "status": "Open", "comments": ""}HTTP Method:- PUTerror:- An error has occurred while handling the request. [User 'Anonymous_fe1b931b-4044-4f92-a94d-b50f5649752e' with session id '4fe316e1-XXXX-XXXX-XXXX-XXXXXXXXdcf1' and roles 'Administrator']: Error calling REST service. when tested on postman it works.
asked
1 answers
0

Hello,

If it’s working in Postman but not from Mendix, then the JSON structure is probably fine. The issue is more likely with the REST call configuration in Mendix.


The first thing I’d check is the headers, especially Content-Type: application/json and any authentication/authorization headers required by the backend.


Also, the error mentions the Anonymous user, so there’s a chance the request is being sent without proper authentication from Mendix, while Postman already has it configured.


Another thing to verify is whether the request body is actually being sent as raw JSON in the PUT call.


If possible, can you share:

  • your Mendix REST call setup
  • request headers
  • and the complete error log


That would help narrow it down pretty quickly.

answered