Overview
The Form Data File REST API services allows you to upload, download, get details, and delete Form Data Files programmatically in your Company.
Base URL
https://fieldconnect.field2base.com/v2/api
Header (Required)
Authorization: Basic {CompanyID}:{Username}:{Password}
Content-Type: multipart/form-data
Note: Authorization Header for uploading is DIFFERENT than most other Mobile Forms REST API calls due to the Content-Type not being application/json.
Note: The Authorization Header supports including the API Sync Key (Basic {CompanyID}:{Username}:{Password}:{API Sync Key}) in all Mobile Forms REST API calls.
Note: API Developers can use OAuth 2.0 Authentication instead of the Basic Authentication. The OAuth 2.0 Authentication uses the Client Credentials Grant Type and requires the Company have a Client ID and a Client Secret generated in the Mobile Forms Portal to make web service calls to the REST API Endpoints. You can contact the Professional Services team at f2bps@field2base.com to implement OAuth 2.0 Authentication.
Supported Operations
- POST datafiles/
- Upload a Form Data File
- Optional parameters are available
- Must use form-data as the Body Type
- Must not use application/json as the Content Type
- GET datafiles/
- Get list of all Data Files
- GET datafiles/folder/{projKey}
- Get List of Data Files for a specific Folder
- GET datafiles/{resourceId}
- Details for a single Form Data file
- GET datafiles/{resourceId}/download
datafiles/{resourceId}/download?format=sqlite - Download a single Form Data file - either original or SQLite format
- DELETE datafiles/{resourceId}
- Delete a single Form Data File
API Samples
Method: POST
Body
- {
- "file": "TimesheetData.xlsx",
- "projKey": "ea2d6b46-5273-4df4-9cb3-45fb2405555" // Optional - leave blank or do not include the key to publish Companywide Form Data Files
- }
Response: 200 OK
- [
- "Message": "Data file TimesheetData.xlsx uploaded",
- "Name": "TimesheetData.xlsx",
- "ProjKey": "ea2d6b46-5273-4df4-9cb3-45fb24045555"
- ]
Request: GET
Response: 200 OK
- [
- {
- "DocumentName": "TimesheetData.xlsx",
- "FriendlyName": "TimesheetData.xlsx.sqlite",
- "ProjKey": "ea2d6b46-5273-4df4-9cb3-45fb24045555",
- "LastModifiedDate": "2026-04-21T12:42:55.397",
- "Version": 2,
- "LastModifiedBy": "UserName",
- "ResourceId": "b4646eb4-0758-4acb-958c-db617d3b5555"
- },
- {
- "DocumentName": "TimesheetData 2.xlsx",
- "FriendlyName": "TimesheetData 2.xlsx.sqlite",
- "ProjKey": "ea2d6b46-5273-4df4-9cb3-45fb24046666",
- "LastModifiedDate": "2026-04-22T17:14:21.997",
- "Version": 2,
- "LastModifiedBy": "Username",
- "ResourceId": "9f3b3010-767a-4d10-b3b9-0e84877d6666"
- }
- ]
Request: GET
Body
- {
- "projKey": "ea2d6b46-5273-4df4-9cb3-45fb24046666"
- }
Response: 200 OK
- [
- {
- "DocumentName": "TimesheetData 2.xlsx",
- "FriendlyName": "TimesheetData 2.xlsx.sqlite",
- "ProjKey": "ea2d6b46-5273-4df4-9cb3-45fb24046666",
- "LastModifiedDate": "2026-04-22T17:14:21.997",
- "Version": 2,
- "LastModifiedBy": "Username",
- "ResourceId": "9f3b3010-767a-4d10-b3b9-0e84877d6666"
- }
- ]
Request: GET
Response: 200 OK
- [
- {
- "DocumentName": "TimesheetData.xlsx",
- "FriendlyName": "TimesheetData.xlsx.sqlite",
- "ProjKey": "ea2d6b46-5273-4df4-9cb3-45fb24045555",
- "LastModifiedDate": "2026-04-21T12:42:55.397",
- "Version": 2,
- "LastModifiedBy": "UserName",
- "ResourceId": "b4646eb4-0758-4acb-958c-db617d3b5555"
- }
- ]
Request: GET
Response: 200 OK
Request: GET
Body
Response: 200 OK
Request: DELETE
Response: 200 OK
- {
- "Message": "Data file TimesheetData 2.xlsx.sqlite deleted"
- }