how to make POST api request by click on Save Button #4325
-
I have to call this POST api "users/edit/:id" with refine inferencer above API config contain dynamic id in param and other data in body |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @kyvox-dev , You can use meta to send custom variables to your data provider. You can check this to learn how to do it: https://refine.dev/docs/tutorial/understanding-dataprovider/create-dataprovider/#meta-usage |
Beta Was this translation helpful? Give feedback.
-
Hey @kyvox-dev, We created another solution and example for you. |
Beta Was this translation helpful? Give feedback.
Hey @kyvox-dev, We created another solution and example for you.
you can use
useCustomMutation
with form data and you can send your request with any method.https://codesandbox.io/s/damp-snowflake-qog2fn?file=/src/pages/posts/edit.tsx:938-1009