Draft Form
Uploading a Draft Form Attachment
To upload a binary to an expected file slot, POST the binary to its endpoint. Supply a Content-Type MIME-type header if you have one.
As of version 2022.3, if there is already a Dataset linked to this attachment, it will be unlinked and replaced with the uploaded file.
post/v1/projects/{projectId}/forms/{xmlFormId}/draft/attachments/{filename}
Path parameters
projectIdnumber required
The numeric ID of the Project
xmlFormIdstring required
The xmlFormId of the Form being referenced.
filenamestring required
The name of that attachment.
Response
OK
Example response
{
"name": "myfile.png",
"exists": true,
"blobExists": true,
"datasetExists": true,
"size": 4096,
"updatedAt": "2018-03-21T12:45:02.312Z"
}