spotty-amberS
Refine4y ago
24 replies
spotty-amber

How to use response of POST request in custom page?

I want to use the response that I get back from the post request to create an resource. I cannot get the same response back using any endpoint so is there a way to capture the response that I get back from post request and display on a custom page.

For example: I get back a response after a successful POST request as
{
  created: [
    {
      id: 1,
      title: 'some title'
    },
  ],
  failed: {}
}


Now I want to use this response and give user a feedback of what has been created and failed, instead of redirecting to list page.
Was this page helpful?