Overview
The Locations REST API services allows you to get Locations information and manage Locations for your company.
Base URL
https://fieldconnect.field2base.com/v2/api
Header (Required)
Authorization: Basic {CompanyID}:{Username}:{Password}:{API Sync Key}
Content-Type: application/json
Note: Authorization Header above is the same as all other 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
Append to the Base URL: https://fieldconnect.field2base.com/v2/api
Locations
- GET locations/
- Get list of all locations
- GET locations/{locationID}
- Get details of a single Location
- POST locations/create
- Create a new location with JSON in body of request
- PUT locations/update/{locationID}
- Update a Location with JSON in body of request
- DELETE locations/delete/{locationID}
- Delete a Location
Location Requirements
- GET locations/requirements
- Get list of Requirements for all Locations
- GET locations/requirement/{LocationRequirementID}
- Get Requirements for a single Location
- POST locations/create/requirement
- Create a new requirement
- PUT locations/update/requirement/{LocationRequirementID}
- Update an existing requirement
- DELETE locations/delete/requirement/{LocationRequirementID}
- Delete an existing requirement
JSON Definitions
Locations
- {
- "LocationID": 6,
- "Name": "F2B Office",
- "Type": "office",
- "ContactName": "ABC",
- "ContactPhone": "123-456-7890",
- "ContactEmail": "fake@email.com",
- "GroupID": 1095,
- "LocationRequirementsAssigned": [
- "Gifts",
- "Mask"
- ]
- }
Requirements
- [
- {
- "LocationRequirementID": 7,
- "Requirement": "Gifts"
- },
- {
- "LocationRequirementID": 8,
- "Requirement": "Mask"
- }
- ]