Draft Form
Listing expected Draft Form Attachments
Form Attachments for each form are automatically determined when the form is first created, by scanning the XForms definition for references to media or data files. Because of this, it is not possible to directly modify the list of form attachments; that list is fully determined by the given XForm. Instead, the focus of this API subresource is around communicating that expected list of files, and uploading binaries into those file slots.
get/v1/projects/{projectId}/forms/{xmlFormId}/draft/attachments
Path parameters
projectIdnumber required
The numeric ID of the Project
xmlFormIdstring required
The xmlFormId of the Form being referenced.
Response
OK
Example response
[
{
"name": "myfile.png",
"exists": true,
"blobExists": true,
"datasetExists": true,
"size": 4096,
"updatedAt": "2018-03-21T12:45:02.312Z"
}
]