Forms
Core
List forms
/api/formsList all forms in a workspace.
Filters
Provided via query string:
| Name | Type | Description |
|---|---|---|
id |
String |
ID |
ownerId |
String |
Owning user's ID |
workspaceId |
String |
Workspace ID |
name |
String |
Name |
status |
String |
Status |
Parameters
Provided via query string:
| Name | Type | Description |
|---|---|---|
limit |
Number |
Number of items to return |
offset |
Number |
Number of items to skip before returning |
Response
An array of Form objects.
Get a form
/api/forms/{id}Fields
List fields
/api/forms/{id}/fieldsList all fields in a form.
Parameters
Provided via query string:
| Name | Type | Description |
|---|---|---|
limit |
Number |
Number of items to return |
offset |
Number |
Number of items to skip before returning |
Response
An array of Field objects.
Groups
List mapped groups
/api/forms/{id}/groupsList the groups a form is distributed to.
Parameters
Provided via query string:
| Name | Type | Description |
|---|---|---|
expand |
Boolean |
Include child groups (defaults to false) |
limit |
Number |
Number of items to return |
offset |
Number |
Number of items to skip before returning |
Response
An array of Group objects.
Populations
List population sets
/api/forms/{id}/populationSetsList all population sets for a form.
Parameters
Provided via query string:
| Name | Type | Description |
|---|---|---|
limit |
Number |
Number of items to return |
offset |
Number |
Number of items to skip before returning |
Response
An array of PopulationSet objects.
Add a population set
/api/forms/{id}/populationSetsAdd a population set to a form.
Request
Provided via body (as JSON):
| Property | Type | Description |
|---|---|---|
name |
String |
Name |
published |
Boolean |
Published |
tokens |
String[] |
Token names |
populations |
Object[] |
Population values Each object is a map of a token name to a token value. The following system tokens are available:
|
Example
{
"name": "Example",
"published": true,
"tokens": ["key", "text", "choices"],
"populations": [
{ "key": "First", "text": "Hello World", "choices": "a;b;c" },
{ "key": "Second", "text": "Goodbye World", "choices": "d;e;f" }
]
}
Response
A PopulationSet object.
Get a population set
/api/forms/{id}/populationSets/{id}List populations in a set
/api/forms/{id}/populationSets/{id}/populationsList all populations in a population set.
Parameters
Provided via query string:
| Name | Type | Description |
|---|---|---|
limit |
Number |
Number of items to return |
offset |
Number |
Number of items to skip before returning |
Response
An array of objects, where each is a map of a token name to a token value.
Update a population set
/api/forms/{id}/populationSets/{id}Update a population set.
Request
Provided via body (as JSON):
| Property | Type | Description |
|---|---|---|
published |
Boolean |
Published |
Response
A PopulationSet object.
Delete a population set
/api/forms/{id}/populationSets/{id}Delete a population set.
Response
An empty 204.
Submissions
List submissions
/api/forms/{id}/submissionsList submissions for a form.
Filters
Provided via query string:
| Name | Type | Description |
|---|---|---|
id |
String |
ID |
userId |
String |
User's ID |
email |
String |
User/participant's e-mail address |
distribution |
String |
Distribution source |
Parameters
Provided via query string:
| Name | Type | Description |
|---|---|---|
limit |
Number |
Number of items to return |
offset |
Number |
Number of items to skip before returning |
Response
An array of Submission objects.
Get a submission
/api/forms/{id}/submissions/{id}Update a submission
/api/forms/{id}/submissions/{id}Update a submission.
Parameters
Provided via query string:
| Name | Type | Description |
|---|---|---|
notifications |
Boolean |
Trigger form notifications |
webhooks |
Boolean |
Trigger form webhooks |
dataForwarding |
Boolean |
Trigger data forwarding |
Request
Provided via body (as JSON):
| Property | Type | Description |
|---|---|---|
data |
Object |
A patch object. The existing data is only modified for entries included in the patch. To clear an entry, use a Note that data is only accepted for fields with the following data types:
data property in the Submission definition for more details. |
Response
A Submission object.