- Getting started
- Introduction
- Requirements
- Installation
- Modules
- Collections
- Forms
- Reference
- Configuration
- Fieldtypes
- Docker
- CLI
- Backend Language
- API
- API Token
- Cockpit
- Collections
- Forms
- Singletons
- Webhooks
Forms
/api/forms/submit/{form_name}
Stores the submission of a form as an entry.
fetch('/api/forms/submit/cockpitForm?token=xxtokenxx', {
method: 'post',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
form: {
field1: 'value1',
field2: 'value2'
}
})
})
.then(entry => entry.json())
.then(entry => console.log(entry));