Do you have a template mentioned in the request body? That would be the simple thing to do. Primary key of the table you’re trying to is template, batch, line number.
Might be your missing some setup otherwise. There are some api templates that get used to fill in missing data. Worth checking for an assisted setup on this as I have never keyed those in.