...
Excerpt Include | ||||
---|---|---|---|---|
|
Method / URL | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Create entry
PAGE_ID - where the ConfiForms form is configured FORM_NAME - name of ConfiForms form fields... - fields here is a set of key-value pairs for ConfiForms form's fields you want to set (separated with '&' as HTTP parameters). For example if the form has a field with a name 'bookTitle' defined then you will need to write bookTitle=Book Title Since version 2.12 you can POST fields as JSON payload (instead of setting fields in the URL via &fields...). There structure is as follows
| ||||||||||||
Update entry
PAGE_ID - where the ConfiForms form is configured | ||||||||||||
Delete entry
| ||||||||||||
Delete entries
PAGE_ID - where the ConfiForms form is configured FORM_NAME - name of ConfiForms form FILTER - filter to match records you want to delete. Same syntax as the filter itself uses. See Using filters section in documentation | ||||||||||||
Update specific field
PAGE_ID - where the ConfiForms form is configured FORM_NAME - name of ConfiForms form FILTER - filter to match records you want to update. Same syntax as the filter itself uses. See Using filters section in documentation fv=field:value - parameter fv shows which form's field to update and it's new value
| ||||||||||||
Validate entry
This method only validates if the data could be saved | ||||||||||||
Search entries
Optional: limitFields - to specify the fields to return (metadata fields are always returned!)
| ||||||||||||
Get by ID
PAGE_ID - where the ConfiForms form is configured UUID - record ID Optional: limitFields - to specify the fields to return (metadata fields are always returned!)
| ||||||||||||
Get form definition
| ||||||||||||
Upload file to ConfiForms fieldSince ConfiForms version 1.20 you are now able to attach files to ConfiForms records via REST API. Make sure you create a POST request and for larger files please consider using a multipart request instead, having file body sent via the file part, not via base64 encoded contents. In this case, do not set the "fv" parameter! File should be encoded as BASE64 string
PAGE_ID - where the ConfiForms form is configured FORM_NAME - name of ConfiForms form FILTER - filter to find the entry you want to upload this file to (for example: id:GUID, id:39554293-f4c6-4ae5-9d34-cb34db1f44a0 to upload to a particular entry, filter can be anything ConfiForms supports ConfiForms Filters) FIELD_NAME - name of the file followed by : and file contents encoded as BASE64 string CONTENT_TYPE - file content type which you are trying to upload, expecting mime type, see https://www.sitepoint.com/web-foundations/mime-types-complete-list/ NAMEOFFILE - name of the file (will be visible as the name in attachments)
For larger files consider using a multi-part POST request and sending your file as a multi-part part, not as encoded base64 contents! Assuming your form is called "myform", it is located on page "819211" and you want to upload a file to field "photo" and attach it to the record that matches the filter "name:alex". Here is what you shall do (screenshot is based on POSTMAN UI) |