Autoform with a restful API?

How would I create a URL like /api/submit

Using autoform?

I want to submit data automatically in to the collection. Any help would be great!

You can use autoform in combination with the collection2 package. This requires no rest API:

Cool got it working, thanks!