Customize responses on endpoints

Answered

Hi

I don't understand, how can manage the API responses with xano.

I've created an endpoint that inserts data into db, but the default response is showing the last row inserted. (image)

So my question is how can I change that response and show instead the rows quantity inserted.

I would like show something like:

{

   message: "upload success",

   rows_added: 10

}
4 replies