Datatable rest->

Hello,

I’m having a problem with datatable and rest calls.
I have configured the url and save property in this way


url: ‘rest->/api/v1/marcature/${id}’,
save: ‘rest->/api/v1/marcatura’

The datatable is binded with a form, when I update an item the url is ok and the PUT method is called well, but when I try to insert new data to the table the POST method fails with a redirec 301 code, if I call the API POST url in postman it works ok.

What I’m doing wrong? I have see samples of code and it seam if configured in the right way.

Some can help me?

Thanks!