Update the data using PUT API request URL

Hi am trying to do update some entities by using PUT method using mockapi.io . I am successful using POST and GET URL method. now I am trying to modify the details using PUT request URL, but it is not working.
I am using URL request as https://5f8d6f1c4c15c40016a1db99.mockapi.io/RequestLeave/{{context.entities.EmployeeId}}
what details I am supposed to put in the body section (all the entities or the one which need to modify?) can anyone please help?

Hi @meghali.gaikwad,

For mockapi.io, you will need to provide all the values including the modified value in the body.

Please let us know if the data is still not being updated even after sending all the values.

Regards,
Yoga Ramya

Hi , Thanks for your reply but I am still getting statuscode as 404. service call is not able to update the data.

Hi @meghali.gaikwad,

The HTTP 404 error occurs in the page not found/server not found scenarios.

We have verified from our end and the PUT request is working as expected.

Also, as you are already passing the values in the “body” section, you need not provide the context path in the request URL.
You can just use the value name in the request URL.

Kindly check if the PUT request is enabled in the mockapi details.

Please try the same API in the Postman and let us know.

Regards,
Yoga Ramya