Farm
Each integration is connected to a single fieldmargin farm. You can fetch some basic information about that farm.
The following method is available over the Web API:
| Method | Description |
|---|---|
farm.info |
General information about the farm |
Web API farm.info
Gives basic information about the farm that your access token is connected to. This request doesn't require any special permissions, it is available to all integrations.
| Method URI | https://api.fieldmargin.com/v1/farm.info
|
|---|---|
| HTTP Method | GET |
| Required scopes | None |
Response
Example response
{
"farm": {
"id": "76530ceb-6720-4a1e-a28d-124cbee922c9",
"name": "Happy Farm",
"location": {
"lat": 51.107813,
"lng": 0.344439
}
}
}
The response contains the following information:
| Field | Description |
|---|---|
id |
Unique ID of the farm |
name |
Name of the farm |
location |
Location of the farm's centre in EPSG:4326 |