Skip to main content

Create Form Files

Description: To create a form file, a HTTP POST request is made to the URL with the form ID.

Method: POST

URI: /forms/form_id/files

URI Parameters

  • form_id: The ID of the form.

Required Parameters

Headers: Authorization: Third party based authorization header

Returns

FieldTypeDescription
Form FileForm FileA form file object.

Example

Request
curl http://app-api.reiformslive.com.au/forms/1/files \
--request POST \
--header "content-type: application/json" \
--header "Authorization: Basic YTlkOWIwYItNGY4Yi1hYTQxLTI5NzZmMTcyZmEyMQ==" \
--data '{
"filename": "Example Form",
"data": "data:application/pdf;base64,R0lGODdh"
}'
Response
{
"id": 1,
"form_id": 1,
"user_id": 1,
"filename": "Test.pdf",
"content_type": "application/pdf",
"attachment": true,
"deleted": false,
"created": "1506294669",
"updated": "1506294669",
"index": 1
}