Kindly have look into below mentioned document it will be helpful for you
https://docs.mendix.com/howto/integration/publish-rest-service
The REST action you are calling is returning the HTTP code 500, indicating an error occurred while that server was processing the request. You should be able to get logs from that server to understand what’s wrong with your request.
Hi,
Did you define in the header that you’re sending JSON? By default mendix api handle data as if it was XML
add this key-value pair to the header:
'Content-Type: application/json'