@sibertauthorJan 14.2022 — #I found a solution. The AJAX and the SQL query was correct, but no value submitted. So I changed the Go API to from execute to a normal "fetch row". Not obvious, but it worked. For those who are using Golang, here is the API code for returning the id (FWIW):
``<i> </i>// simplified endpoint func Create(w http.ResponseWriter, r *http.Request) { data = new(query, val) json.NewEncoder(w).Encode(data) }
// add new record func new(query string, val string) interface{} { var id int err := db.QueryRowx(query, val).Scan(&id) if err != nil { return nil } return (id) }<i> </i>``