Update details from service node to mockapi through PUT request

Hi! I am trying to update data from service node to mockapi.
my mockapi data format:
[{“id”:“1”,“name”:“rose”,“PhoneNumber”:“+19452133585”,“BoardingCity”:“japan”,“Date”:“07/16/2024”,“EmailId”:"rose1234@gmail.com"}]
Process:

  1. Fetch userdetails using PhoneNumber entity through GET service
  2. Create entity ModifyLocation which asks user to input new location.
  3. Use PUT request in Service node.
    (I even tried using script node before service node, but no result)
    I am receiving error 400.
    Please help
1 Like

hi @tejuindala1234,
just replace phone_number to id in the URL and just parse the data which you modified in your case you modified location right? then request body should contain:
{
“boardingCity”:“{{context.entities.LocationModify}}”
}