Getting blank record while integrating " External PUT API" in wappler

Hello Members,

Have integrating PUT API in Wappler.io using API Action.

  1. On this Button :

  2. This form i have created using Update API Action:

  3. On save :

  4. I’m running my application in browser now :

  5. I got 404 Error :

  6. Then i change URL parameter to POST ID:

  7. And if now i’m edit and submit i’m getting Blank record? :

here i’m expecting in " userupdate?id=85 " in console.

Tried using POST instead of PUT ?

1 Like

Thanks @scalaris for response,

Yes i have tried using POST also.

I can only assume the 404 error results from the API call to /api/profile/{{$_POST.id}} which resolves, in your example, to /api/profile/55

Do you have a route defined to handle this call?

1 Like

Thanks @Hyperbytes for response,

Yes i have defined route to handle this call.

OK, the “loss” of the 404 error suggests the route is working correctly.
Also the fact that the values are set to blank indicates the update action is working but the $_POST values are blank (or seen as blank)

You have not actually detailed how the API call works (i assume you JSONdecode the payload) so difficult to comment why but try this configuration to ensure the values are “POSTed”

1 Like

Hi @Hyperbytes

The solution you provided looks promising, and I’m eager to try it out. Due to current constraints, I won’t be able to implement it immediately, but I plan to do so at the earliest opportunity.

Best Regards,
Pratik

I will be around for another 24 hrs then I won’t have access to wappler after that for some time.

Sure @Hyperbytes, Thank You.

Hi @Hyperbytes,

Have tried the way you asked to do but its generating new blank record with new ID.