List all Forms
Changed onCurrently, there are no paging or filtering options, so listing Forms will get you every Form you are allowed to access, every time.
As of version 1.2, Forms that are unpublished (that only carry a draft and have never been published) will appear with full metadata detail. Previously, certain details like name were omitted. You can determine that a Form is unpublished by checking the publishedAt value: it will be null for unpublished forms.
This endpoint supports retrieving extended metadata; provide a header X-Extended-Metadata: true to additionally retrieve the submissions count of the number of Submissions that each Form has, the reviewStates object of counts of Submissions with specific review states, the lastSubmission most recent submission timestamp, the Actor the Form was createdBy, as well as other metadata.
The query ?deleted=true can be added to list deleted Forms with their numeric form IDs, which can be used to restore a deleted Form.
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/v1/projects/{projectId}/forms
- Authnone declared
Path parameters
The numeric ID of the Project
Query parameters
If set to true, will return only deleted Forms and their IDs
Response
OK
Example response
[
{
"projectId": 1,
"xmlFormId": "simple",
"name": "Simple",
"version": "2.1",
"enketoId": "abcdef",
"hash": "51a93eab3a1974dbffc4c7913fa5a16a",
"keyId": 3,
"publishedAt": "2018-01-21T00:04:11.153Z",
"createdAt": "2018-01-19T23:58:03.395Z",
"updatedAt": "2018-03-21T12:45:02.312Z"
}
]Changes
- info
api operation id
List all Formsremoved and replaced withlistAllForms
- info
- info
removed the non-success response with the status
- info