Overview
The Forms and Regions REST API services allows you to get information on the Form Templates for 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 above 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 forms/
- Publish a Form Template
- Optional parameters are available
API Samples
Method: POST
- https://fieldconnect.field2base.com/v2/api/forms/
Body
- {
- "file": "Timesheet.eform",
- "projKey": "ea2d6b46-5273-4df4-9cb3-45fb2404bac9" // Optional - leave blank or do not include the key to publish Companywide Form Templates
- }
Response: 200 OK
- [
- {
- "TemplateId": "d65fab25-9a8c-4314-aad6-457c311de469",
- "Name": "Timesheet",
- "ProjKey": "ea2d6b46-5273-4df4-9cb3-45fb2404bac9",
- "ProjName": "Timesheets",
- "Version": 2,
- "Description": "",
- "RevisionNumber": 1
- }
- ]