Create a new cropzone activity
Creates a activity under cropzone, requires organization write access
Authorizations:
path Parameters
cropzone_id required | string |
Request Body schema: application/json
activity_type_id | string |
start_date | string Start date follows iso8601 format |
end_date | string End date follows iso8601 format |
extra | object |
Responses
Request samples
- Payload
{- "activity_type_id": "5d2b6be0-f1b0-4f9f-a15c-6cdb622e2c51",
- "start_date": "2021-05-06T12:39:36Z",
- "end_date": "2021-07-16T10:20:11Z",
- "extra": { }
}
Response samples
- 200
{- "id": "dd732456-9218-48b3-895d-7522d38e610b",
- "owner": null,
- "extra": { },
- "assignees": [ ],
- "labels": [ ],
- "activity_type": {
- "id": "8f68fbcb-63d3-4770-9617-3d6a1164ed3e",
- "name": "Activity 905784336",
- "canonical_name": "canonical_774586440",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:32Z",
- "updated_at": "2024-12-25T07:53:32Z"
}, - "type": "CropzoneActivity",
- "start_date": "2021-05-06T12:39:36Z",
- "end_date": null,
- "attachments": [ ],
- "note": "Test Note",
- "cropzone_id": "7e783fe6-7158-41af-818b-27595ab7240e",
- "cropzone": {
- "id": "7e783fe6-7158-41af-818b-27595ab7240e",
- "slug": "falling-feather-59",
- "name": "cropzone 501706956",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:53:32Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "ffa0117f-71b7-4932-a770-7357ab5d81d4",
- "name": "Shore Natural RX147326946",
- "canonical_name": "canonical_318037603",
- "variety": "OG Chem",
- "genus": "genus_125327098",
- "name_i18n": {
- "en": "Strawberry Banana"
}, - "variety_i18n": {
- "en": "Granddaddy Purple Kush"
}
}, - "field_id": "80ad2800-c472-4a19-8a61-e85c08ed8cbf",
- "field": {
- "id": "80ad2800-c472-4a19-8a61-e85c08ed8cbf",
- "name": "field 938141793"
}, - "farm": {
- "id": "5cc164a4-a558-4021-a44c-2ec2d54b7d87",
- "name": "Buckridge and Sons",
- "phone": null
}, - "season": null,
- "activities_count": 1,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:32Z",
- "updated_at": "2024-12-25T07:53:32Z",
- "latest_vis": [ ]
}, - "farm": {
- "id": "5cc164a4-a558-4021-a44c-2ec2d54b7d87",
- "name": "Buckridge and Sons",
- "email": "pricilla@bauch.name",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "red-fog-54",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:53:32Z",
- "updated_at": "2024-12-25T07:53:32Z"
}, - "field": {
- "id": "80ad2800-c472-4a19-8a61-e85c08ed8cbf",
- "farm_id": "5cc164a4-a558-4021-a44c-2ec2d54b7d87",
- "name": "field 938141793",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [
- {
- "id": "ffa0117f-71b7-4932-a770-7357ab5d81d4",
- "name": "Shore Natural RX147326946",
- "canonical_name": "canonical_318037603",
- "variety": "OG Chem",
- "genus": "genus_125327098",
- "name_i18n": {
- "en": "Strawberry Banana"
}, - "variety_i18n": {
- "en": "Granddaddy Purple Kush"
}
}
], - "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:32Z",
- "updated_at": "2024-12-25T07:53:32Z"
}, - "archived_at": null,
- "created_at": "2024-12-25T07:53:33Z",
- "updated_at": "2024-12-25T07:53:33Z"
}
List activities of a cropzone
Get a list of activities associated with the cropzone with cropzone_id
provided in url
Required organizations:read
scope to access
Authorizations:
path Parameters
cropzone_id required | string |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
filter[field_id] | string <uuid> Field ID to filter |
filter[farm_id] | string <uuid> Farm ID to filter |
filter[cropzone_id] | string <uuid> Cropzone ID to filter |
filter[activity_type_id] | string <uuid> Example: filter[activity_type_id]=1 To filter by activity_type_id |
filter[start_date_from] | string <datetime> Example: filter[start_date_from]=2022-01-01 To filter by start_date from |
filter[start_date_to] | string <datetime> Example: filter[start_date_to]=2022-01-31 To filter by start_date to |
filter[end_date_from] | string or null <datetime> Example: filter[end_date_from]=2022-01-01 To filter by end_date from |
filter[end_date_to] | string or null <datetime> Example: filter[end_date_to]=2022-01-31 To filter by end_date to |
filter[status] | string or null Example: filter[status]=all status can be all, current, archived. All will show all activities, current the non archived, and archived only the archived activities |
Request Body schema: application/json
Responses
Request samples
- Payload
"string"
Response samples
- 200
[- {
- "id": "0b2d44b7-7866-429e-a53e-9878666d8401",
- "owner": null,
- "extra": { },
- "assignees": [ ],
- "labels": [ ],
- "activity_type": {
- "id": "d9113bd6-22aa-4397-b0ac-3d25858655a4",
- "name": "Activity 732792320",
- "canonical_name": "canonical_353026230",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:37Z",
- "updated_at": "2024-12-25T07:53:37Z"
}, - "type": "CropzoneActivity",
- "start_date": "2021-05-06T12:39:36Z",
- "end_date": "2021-05-06T12:39:36Z",
- "attachments": [ ],
- "note": null,
- "cropzone_id": "a069488e-9f11-41a0-b679-4d628a6e4096",
- "cropzone": {
- "id": "a069488e-9f11-41a0-b679-4d628a6e4096",
- "slug": "hidden-rain-84",
- "name": "cropzone 995533239",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:53:37Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "298874bb-6132-4ba7-aa7a-e5114fd2c9ea",
- "name": "Jetty Extracts660474842",
- "canonical_name": "canonical_974019440",
- "variety": "Rude Boi OG",
- "genus": "genus_155172679",
- "name_i18n": {
- "en": "Strawberry Banana"
}, - "variety_i18n": {
- "en": "Canna Sutra"
}
}, - "field_id": "f723d4dc-3514-4f02-89da-e2119a0174a1",
- "field": {
- "id": "f723d4dc-3514-4f02-89da-e2119a0174a1",
- "name": "field 391326329"
}, - "farm": {
- "id": "744cc7ef-a16f-4674-ace7-20377fa25a5a",
- "name": "Schneider-Shanahan",
- "phone": null
}, - "season": null,
- "activities_count": 3,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:37Z",
- "updated_at": "2024-12-25T07:53:37Z",
- "latest_vis": [ ]
}, - "farm": {
- "id": "744cc7ef-a16f-4674-ace7-20377fa25a5a",
- "name": "Schneider-Shanahan",
- "email": "pablo@kunze-oreilly.org",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "twilight-firefly-41",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:53:37Z",
- "updated_at": "2024-12-25T07:53:37Z"
}, - "field": {
- "id": "f723d4dc-3514-4f02-89da-e2119a0174a1",
- "farm_id": "744cc7ef-a16f-4674-ace7-20377fa25a5a",
- "name": "field 391326329",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [
- {
- "id": "298874bb-6132-4ba7-aa7a-e5114fd2c9ea",
- "name": "Jetty Extracts660474842",
- "canonical_name": "canonical_974019440",
- "variety": "Rude Boi OG",
- "genus": "genus_155172679",
- "name_i18n": {
- "en": "Strawberry Banana"
}, - "variety_i18n": {
- "en": "Canna Sutra"
}
}
], - "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:37Z",
- "updated_at": "2024-12-25T07:53:37Z"
}, - "archived_at": null,
- "created_at": "2024-12-25T07:53:37Z",
- "updated_at": "2024-12-25T07:53:37Z"
}, - {
- "id": "6c7c5226-32b7-4011-9741-9f2c6e7c4cf7",
- "owner": null,
- "extra": { },
- "assignees": [ ],
- "labels": [ ],
- "activity_type": {
- "id": "104531bb-11a2-4690-b9a5-80083b345d7f",
- "name": "Activity 754258184",
- "canonical_name": "canonical_542635479",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:37Z",
- "updated_at": "2024-12-25T07:53:37Z"
}, - "type": "CropzoneActivity",
- "start_date": "2021-05-06T12:39:36Z",
- "end_date": "2021-05-06T12:39:36Z",
- "attachments": [ ],
- "note": null,
- "cropzone_id": "a069488e-9f11-41a0-b679-4d628a6e4096",
- "cropzone": {
- "id": "a069488e-9f11-41a0-b679-4d628a6e4096",
- "slug": "hidden-rain-84",
- "name": "cropzone 995533239",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:53:37Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "298874bb-6132-4ba7-aa7a-e5114fd2c9ea",
- "name": "Jetty Extracts660474842",
- "canonical_name": "canonical_974019440",
- "variety": "Rude Boi OG",
- "genus": "genus_155172679",
- "name_i18n": {
- "en": "Strawberry Banana"
}, - "variety_i18n": {
- "en": "Canna Sutra"
}
}, - "field_id": "f723d4dc-3514-4f02-89da-e2119a0174a1",
- "field": {
- "id": "f723d4dc-3514-4f02-89da-e2119a0174a1",
- "name": "field 391326329"
}, - "farm": {
- "id": "744cc7ef-a16f-4674-ace7-20377fa25a5a",
- "name": "Schneider-Shanahan",
- "phone": null
}, - "season": null,
- "activities_count": 3,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:37Z",
- "updated_at": "2024-12-25T07:53:37Z",
- "latest_vis": [ ]
}, - "farm": {
- "id": "744cc7ef-a16f-4674-ace7-20377fa25a5a",
- "name": "Schneider-Shanahan",
- "email": "pablo@kunze-oreilly.org",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "twilight-firefly-41",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:53:37Z",
- "updated_at": "2024-12-25T07:53:37Z"
}, - "field": {
- "id": "f723d4dc-3514-4f02-89da-e2119a0174a1",
- "farm_id": "744cc7ef-a16f-4674-ace7-20377fa25a5a",
- "name": "field 391326329",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [
- {
- "id": "298874bb-6132-4ba7-aa7a-e5114fd2c9ea",
- "name": "Jetty Extracts660474842",
- "canonical_name": "canonical_974019440",
- "variety": "Rude Boi OG",
- "genus": "genus_155172679",
- "name_i18n": {
- "en": "Strawberry Banana"
}, - "variety_i18n": {
- "en": "Canna Sutra"
}
}
], - "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:37Z",
- "updated_at": "2024-12-25T07:53:37Z"
}, - "archived_at": null,
- "created_at": "2024-12-25T07:53:37Z",
- "updated_at": "2024-12-25T07:53:37Z"
}
]
Update activity info
Update Activity info. You must have an API token with the organizations:write
scope.
Authorizations:
path Parameters
id required | string |
Request Body schema: application/json
activity_type_id required | string |
start_date required | string Start date follows iso8601 format |
end_date | string End date follows iso8601 format |
note | string |
extra | object |
Responses
Request samples
- Payload
{- "activity_type_id": "65f2ee9d-d96d-462f-8fbd-03b426a582a7",
- "start_date": "2021-05-06T12:39:36Z",
- "end_date": "2021-07-16T10:20:11Z",
- "note": "Test note",
- "extra": { }
}
Response samples
- 200
{- "id": "81b977fd-26e8-4041-8c57-50e1da22690c",
- "owner": null,
- "extra": { },
- "assignees": [ ],
- "labels": [ ],
- "activity_type": {
- "id": "71b4acd3-8af6-4b84-aed9-7361a5f11a7e",
- "name": "Activity 711869347",
- "canonical_name": "canonical_105318448",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:36Z",
- "updated_at": "2024-12-25T07:53:36Z"
}, - "type": "CropzoneActivity",
- "start_date": "2024-12-25T07:53:36Z",
- "end_date": "2025-01-25T07:53:36Z",
- "attachments": [ ],
- "note": null,
- "cropzone_id": "f8a1b29b-d5e4-44f0-81f0-1d867ebda668",
- "cropzone": {
- "id": "f8a1b29b-d5e4-44f0-81f0-1d867ebda668",
- "slug": "spring-moon-23",
- "name": "cropzone 583995527",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:53:36Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "94c32a66-9620-4753-bba0-7f6bd72965a6",
- "name": "The Goodship Company758345268",
- "canonical_name": "canonical_683325047",
- "variety": "Cheese",
- "genus": "genus_255618019",
- "name_i18n": {
- "en": "Watermelon"
}, - "variety_i18n": {
- "en": "Pitbull"
}
}, - "field_id": "62034873-d55c-4480-958a-3ae3cc6b9b32",
- "field": {
- "id": "62034873-d55c-4480-958a-3ae3cc6b9b32",
- "name": "field 394553853"
}, - "farm": {
- "id": "e4b50b48-9c0c-4be4-9fd0-1fbd3e8191d4",
- "name": "Kutch and Sons",
- "phone": null
}, - "season": null,
- "activities_count": 1,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:36Z",
- "updated_at": "2024-12-25T07:53:36Z",
- "latest_vis": [ ]
}, - "farm": {
- "id": "e4b50b48-9c0c-4be4-9fd0-1fbd3e8191d4",
- "name": "Kutch and Sons",
- "email": "larry_koss@monahan-kshlerin.info",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "ancient-fog-18",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:53:36Z",
- "updated_at": "2024-12-25T07:53:36Z"
}, - "field": {
- "id": "62034873-d55c-4480-958a-3ae3cc6b9b32",
- "farm_id": "e4b50b48-9c0c-4be4-9fd0-1fbd3e8191d4",
- "name": "field 394553853",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [
- {
- "id": "94c32a66-9620-4753-bba0-7f6bd72965a6",
- "name": "The Goodship Company758345268",
- "canonical_name": "canonical_683325047",
- "variety": "Cheese",
- "genus": "genus_255618019",
- "name_i18n": {
- "en": "Watermelon"
}, - "variety_i18n": {
- "en": "Pitbull"
}
}
], - "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:36Z",
- "updated_at": "2024-12-25T07:53:36Z"
}, - "archived_at": null,
- "created_at": "2024-12-25T07:53:36Z",
- "updated_at": "2024-12-25T07:53:36Z"
}
Response samples
- 200
{- "id": "e0f6c3d6-1a83-4024-ae68-c1f558e938a2",
- "owner": null,
- "extra": { },
- "assignees": [ ],
- "labels": [ ],
- "activity_type": {
- "id": "df048346-20dd-47ca-bdf7-a06dffbf450d",
- "name": "Activity 173380528",
- "canonical_name": "canonical_778240333",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:42Z",
- "updated_at": "2024-12-25T07:53:42Z"
}, - "type": "CropzoneActivity",
- "start_date": "2024-12-25T07:53:42Z",
- "end_date": "2024-12-26T07:53:42Z",
- "attachments": [ ],
- "note": null,
- "cropzone_id": "68f231ea-aeb5-4e83-aa0e-610306159d24",
- "cropzone": {
- "id": "68f231ea-aeb5-4e83-aa0e-610306159d24",
- "slug": "withered-haze-95",
- "name": "cropzone 156986168",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:53:42Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "8d2e0d48-ab81-4c05-8088-d536403ea455",
- "name": "Dixie Edibles948609482",
- "canonical_name": "canonical_982257438",
- "variety": "24k",
- "genus": "genus_745818542",
- "name_i18n": {
- "en": "Bio-Diesel"
}, - "variety_i18n": {
- "en": "Double Dutch Bus"
}
}, - "field_id": "59a85fb1-b1be-4cf2-95a6-09767fba2e23",
- "field": {
- "id": "59a85fb1-b1be-4cf2-95a6-09767fba2e23",
- "name": "field 393781950"
}, - "farm": {
- "id": "ce2432d6-3a84-4bbc-a2ee-0f096b9c4733",
- "name": "Lind LLC",
- "phone": null
}, - "season": null,
- "activities_count": 1,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:42Z",
- "updated_at": "2024-12-25T07:53:42Z",
- "latest_vis": [ ]
}, - "farm": {
- "id": "ce2432d6-3a84-4bbc-a2ee-0f096b9c4733",
- "name": "Lind LLC",
- "email": "gonzalo.okon@mayer.name",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "black-rain-99",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:53:42Z",
- "updated_at": "2024-12-25T07:53:42Z"
}, - "field": {
- "id": "59a85fb1-b1be-4cf2-95a6-09767fba2e23",
- "farm_id": "ce2432d6-3a84-4bbc-a2ee-0f096b9c4733",
- "name": "field 393781950",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [
- {
- "id": "8d2e0d48-ab81-4c05-8088-d536403ea455",
- "name": "Dixie Edibles948609482",
- "canonical_name": "canonical_982257438",
- "variety": "24k",
- "genus": "genus_745818542",
- "name_i18n": {
- "en": "Bio-Diesel"
}, - "variety_i18n": {
- "en": "Double Dutch Bus"
}
}
], - "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:42Z",
- "updated_at": "2024-12-25T07:53:42Z"
}, - "archived_at": null,
- "created_at": "2024-12-25T07:53:42Z",
- "updated_at": "2024-12-25T07:53:42Z"
}
List activities of a farm
Get a list of activities associated with the farm with farm_id
provided in urlRequired organizations:read
scope to access
Authorizations:
path Parameters
farm_id required | string |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
status | string Example: status=all status can be all, current, archived. All will show all activities, current the non archived, and archived only the archived activities |
Responses
Response samples
- 200
[- {
- "id": "49c3ed59-7e1e-4739-91da-fdc8a2f79852",
- "owner": null,
- "extra": { },
- "assignees": [ ],
- "labels": [ ],
- "activity_type": {
- "id": "2db01680-927a-40a9-b577-38a910cd1acf",
- "name": "Activity 317972693",
- "canonical_name": "canonical_574375937",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:40Z",
- "updated_at": "2024-12-25T07:53:40Z"
}, - "type": "CropzoneActivity",
- "start_date": "2021-05-06T12:39:36Z",
- "end_date": "2021-05-06T12:39:36Z",
- "attachments": [ ],
- "note": null,
- "cropzone_id": "612c3ec3-6163-4627-9865-75e9afda1747",
- "cropzone": {
- "id": "612c3ec3-6163-4627-9865-75e9afda1747",
- "slug": "thrumming-dust-11",
- "name": "cropzone 432878700",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:53:40Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "bbfdc7ff-12d5-4af8-8087-b2aaaf1287d0",
- "name": "Marley Natural498805340",
- "canonical_name": "canonical_954697744",
- "variety": "Gelato",
- "genus": "genus_578986531",
- "name_i18n": {
- "en": "Nug Salad"
}, - "variety_i18n": {
- "en": "Saturn OG"
}
}, - "field_id": "0d560285-ef16-4823-9fce-a3e9c1587628",
- "field": {
- "id": "0d560285-ef16-4823-9fce-a3e9c1587628",
- "name": "field 181212846"
}, - "farm": {
- "id": "7729560e-96eb-4ed3-9181-44f177653547",
- "name": "Bruen Inc",
- "phone": null
}, - "season": null,
- "activities_count": 3,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:40Z",
- "updated_at": "2024-12-25T07:53:40Z",
- "latest_vis": [ ]
}, - "farm": {
- "id": "7729560e-96eb-4ed3-9181-44f177653547",
- "name": "Bruen Inc",
- "email": "jennifer@carter.name",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "wispy-sun-53",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:53:40Z",
- "updated_at": "2024-12-25T07:53:40Z"
}, - "field": {
- "id": "0d560285-ef16-4823-9fce-a3e9c1587628",
- "farm_id": "7729560e-96eb-4ed3-9181-44f177653547",
- "name": "field 181212846",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [
- {
- "id": "bbfdc7ff-12d5-4af8-8087-b2aaaf1287d0",
- "name": "Marley Natural498805340",
- "canonical_name": "canonical_954697744",
- "variety": "Gelato",
- "genus": "genus_578986531",
- "name_i18n": {
- "en": "Nug Salad"
}, - "variety_i18n": {
- "en": "Saturn OG"
}
}
], - "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:40Z",
- "updated_at": "2024-12-25T07:53:40Z"
}, - "archived_at": null,
- "created_at": "2024-12-25T07:53:40Z",
- "updated_at": "2024-12-25T07:53:40Z"
}, - {
- "id": "2e743325-7b20-4c4c-b6f1-45a05359a838",
- "owner": null,
- "extra": { },
- "assignees": [ ],
- "labels": [ ],
- "activity_type": {
- "id": "b35ae6e1-569a-4fb4-b2c9-6f96ffecaa0a",
- "name": "Activity 997051818",
- "canonical_name": "canonical_664703691",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:40Z",
- "updated_at": "2024-12-25T07:53:40Z"
}, - "type": "CropzoneActivity",
- "start_date": "2021-05-06T12:39:36Z",
- "end_date": "2021-05-06T12:39:36Z",
- "attachments": [ ],
- "note": null,
- "cropzone_id": "612c3ec3-6163-4627-9865-75e9afda1747",
- "cropzone": {
- "id": "612c3ec3-6163-4627-9865-75e9afda1747",
- "slug": "thrumming-dust-11",
- "name": "cropzone 432878700",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:53:40Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "bbfdc7ff-12d5-4af8-8087-b2aaaf1287d0",
- "name": "Marley Natural498805340",
- "canonical_name": "canonical_954697744",
- "variety": "Gelato",
- "genus": "genus_578986531",
- "name_i18n": {
- "en": "Nug Salad"
}, - "variety_i18n": {
- "en": "Saturn OG"
}
}, - "field_id": "0d560285-ef16-4823-9fce-a3e9c1587628",
- "field": {
- "id": "0d560285-ef16-4823-9fce-a3e9c1587628",
- "name": "field 181212846"
}, - "farm": {
- "id": "7729560e-96eb-4ed3-9181-44f177653547",
- "name": "Bruen Inc",
- "phone": null
}, - "season": null,
- "activities_count": 3,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:40Z",
- "updated_at": "2024-12-25T07:53:40Z",
- "latest_vis": [ ]
}, - "farm": {
- "id": "7729560e-96eb-4ed3-9181-44f177653547",
- "name": "Bruen Inc",
- "email": "jennifer@carter.name",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "wispy-sun-53",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:53:40Z",
- "updated_at": "2024-12-25T07:53:40Z"
}, - "field": {
- "id": "0d560285-ef16-4823-9fce-a3e9c1587628",
- "farm_id": "7729560e-96eb-4ed3-9181-44f177653547",
- "name": "field 181212846",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [
- {
- "id": "bbfdc7ff-12d5-4af8-8087-b2aaaf1287d0",
- "name": "Marley Natural498805340",
- "canonical_name": "canonical_954697744",
- "variety": "Gelato",
- "genus": "genus_578986531",
- "name_i18n": {
- "en": "Nug Salad"
}, - "variety_i18n": {
- "en": "Saturn OG"
}
}
], - "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:40Z",
- "updated_at": "2024-12-25T07:53:40Z"
}, - "archived_at": null,
- "created_at": "2024-12-25T07:53:40Z",
- "updated_at": "2024-12-25T07:53:40Z"
}
]
List activities of a field
Get a list of activities associated with the field with field_id
provided in urlRequired organizations:read
scope to access
Authorizations:
path Parameters
field_id required | string |
query Parameters
page | integer Default: 1 Page number |
activity_type_id | string To filter by activity_type_id |
from | string To filter by start_date or end_date from |
to | string To filter by start_date or end_date to |
status | string Example: status=all status can be all, current, archived. All will show all activities, current the non archived, and archived only the archived activities |
Responses
Response samples
- 200
[- {
- "id": "37378b0f-b859-46a5-abb4-6d0b2668242e",
- "owner": null,
- "extra": { },
- "assignees": [ ],
- "labels": [ ],
- "activity_type": {
- "id": "9c233b7a-67ba-4ae4-aae1-d4581a4d1ed1",
- "name": "Activity 548616325",
- "canonical_name": "canonical_919857409",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:41Z",
- "updated_at": "2024-12-25T07:53:41Z"
}, - "type": "CropzoneActivity",
- "start_date": "2021-05-06T12:39:36Z",
- "end_date": "2021-05-06T12:39:36Z",
- "attachments": [ ],
- "note": null,
- "cropzone_id": "e56f6a2f-d832-4426-84ef-f7e5a0e0e054",
- "cropzone": {
- "id": "e56f6a2f-d832-4426-84ef-f7e5a0e0e054",
- "slug": "still-cherry-32",
- "name": "cropzone 414421438",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:53:41Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "9149600a-98af-476b-8c6a-91bf4eaa57a9",
- "name": "Cheeba Chews534534516",
- "canonical_name": "canonical_616152765",
- "variety": "Golden Strawberries",
- "genus": "genus_243197563",
- "name_i18n": {
- "en": "Blackwater OG"
}, - "variety_i18n": {
- "en": "Colfax Jack"
}
}, - "field_id": "8856b3c2-2205-497f-952e-e16feead764f",
- "field": {
- "id": "8856b3c2-2205-497f-952e-e16feead764f",
- "name": "field 217082510"
}, - "farm": {
- "id": "af46a6a3-87c1-4f0d-9adb-5e04ef54715e",
- "name": "Okuneva-Ziemann",
- "phone": null
}, - "season": null,
- "activities_count": 4,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:41Z",
- "updated_at": "2024-12-25T07:53:41Z",
- "latest_vis": [ ]
}, - "farm": {
- "id": "af46a6a3-87c1-4f0d-9adb-5e04ef54715e",
- "name": "Okuneva-Ziemann",
- "email": "noble.reichel@grimes.com",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "lively-resonance-98",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:53:41Z",
- "updated_at": "2024-12-25T07:53:41Z"
}, - "field": {
- "id": "8856b3c2-2205-497f-952e-e16feead764f",
- "farm_id": "af46a6a3-87c1-4f0d-9adb-5e04ef54715e",
- "name": "field 217082510",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [
- {
- "id": "9149600a-98af-476b-8c6a-91bf4eaa57a9",
- "name": "Cheeba Chews534534516",
- "canonical_name": "canonical_616152765",
- "variety": "Golden Strawberries",
- "genus": "genus_243197563",
- "name_i18n": {
- "en": "Blackwater OG"
}, - "variety_i18n": {
- "en": "Colfax Jack"
}
}
], - "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:41Z",
- "updated_at": "2024-12-25T07:53:41Z"
}, - "archived_at": "2024-12-25T07:53:41Z",
- "created_at": "2024-12-25T07:53:41Z",
- "updated_at": "2024-12-25T07:53:41Z"
}, - {
- "id": "d7935e3a-4d9e-4709-ac93-d9be23d33b0e",
- "owner": null,
- "extra": { },
- "assignees": [ ],
- "labels": [ ],
- "activity_type": {
- "id": "0a30f758-ed29-460b-865f-0ee0d2034bcc",
- "name": "Activity 772807871",
- "canonical_name": "canonical_412893885",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:41Z",
- "updated_at": "2024-12-25T07:53:41Z"
}, - "type": "CropzoneActivity",
- "start_date": "2021-05-06T12:39:36Z",
- "end_date": "2021-05-06T12:39:36Z",
- "attachments": [ ],
- "note": null,
- "cropzone_id": "e56f6a2f-d832-4426-84ef-f7e5a0e0e054",
- "cropzone": {
- "id": "e56f6a2f-d832-4426-84ef-f7e5a0e0e054",
- "slug": "still-cherry-32",
- "name": "cropzone 414421438",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:53:41Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "9149600a-98af-476b-8c6a-91bf4eaa57a9",
- "name": "Cheeba Chews534534516",
- "canonical_name": "canonical_616152765",
- "variety": "Golden Strawberries",
- "genus": "genus_243197563",
- "name_i18n": {
- "en": "Blackwater OG"
}, - "variety_i18n": {
- "en": "Colfax Jack"
}
}, - "field_id": "8856b3c2-2205-497f-952e-e16feead764f",
- "field": {
- "id": "8856b3c2-2205-497f-952e-e16feead764f",
- "name": "field 217082510"
}, - "farm": {
- "id": "af46a6a3-87c1-4f0d-9adb-5e04ef54715e",
- "name": "Okuneva-Ziemann",
- "phone": null
}, - "season": null,
- "activities_count": 4,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:41Z",
- "updated_at": "2024-12-25T07:53:41Z",
- "latest_vis": [ ]
}, - "farm": {
- "id": "af46a6a3-87c1-4f0d-9adb-5e04ef54715e",
- "name": "Okuneva-Ziemann",
- "email": "noble.reichel@grimes.com",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "lively-resonance-98",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:53:41Z",
- "updated_at": "2024-12-25T07:53:41Z"
}, - "field": {
- "id": "8856b3c2-2205-497f-952e-e16feead764f",
- "farm_id": "af46a6a3-87c1-4f0d-9adb-5e04ef54715e",
- "name": "field 217082510",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [
- {
- "id": "9149600a-98af-476b-8c6a-91bf4eaa57a9",
- "name": "Cheeba Chews534534516",
- "canonical_name": "canonical_616152765",
- "variety": "Golden Strawberries",
- "genus": "genus_243197563",
- "name_i18n": {
- "en": "Blackwater OG"
}, - "variety_i18n": {
- "en": "Colfax Jack"
}
}
], - "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:53:41Z",
- "updated_at": "2024-12-25T07:53:41Z"
}, - "archived_at": "2024-12-25T07:53:41Z",
- "created_at": "2024-12-25T07:53:41Z",
- "updated_at": "2024-12-25T07:53:41Z"
}
]
List of activity types
Get a list of all activity types added in the system.
Authorizations:
Responses
Response samples
- 200
[- {
- "id": "9addba81-a436-4439-9f29-d10145e47c7f",
- "name": "planting",
- "canonical_name": "planting",
- "extra_schema": null,
- "created_at": "2024-12-25T07:42:02Z",
- "updated_at": "2024-12-25T07:42:02Z"
}, - {
- "id": "ac747b45-df3e-43f7-9a10-f310ec5ed737",
- "name": "harvesting",
- "canonical_name": "harvesting",
- "extra_schema": {
- "type": "object",
- "properties": {
- "harvest": {
- "type": [
- "null",
- "number"
], - "minimum": 0
}
}, - "required": [ ]
}, - "created_at": "2024-12-25T07:42:02Z",
- "updated_at": "2024-12-25T07:42:02Z"
}, - {
- "id": "de0da901-a07c-4436-82c9-9efaa4cdadd2",
- "name": "fertilization",
- "canonical_name": "fertilization",
- "extra_schema": {
- "type": "object",
- "properties": {
- "fertilizers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": [
- "null",
- "string"
], - "enum": [
- "chemical",
- "chicken_manure",
- "cow_manure",
- "other_organic",
- "slow_release",
- "lime",
- "dolomite"
]
}, - "method": {
- "type": [
- "null",
- "string"
], - "enum": [
- "machine_broadcast",
- "drone",
- "sprayer",
- "human",
- "drip"
]
}, - "nitrogen": {
- "type": [
- "null",
- "integer"
], - "minimum": 0
}, - "phosphorus": {
- "type": [
- "null",
- "integer"
], - "minimum": 0
}, - "potassium": {
- "type": [
- "null",
- "integer"
], - "minimum": 0
}, - "amount": {
- "type": [
- "null",
- "number"
], - "minimum": 0
}, - "amount_unit": {
- "type": "string",
- "minLength": 1,
- "enum": [
- "kg/m2",
- "L/m2"
]
}
}, - "required": [ ]
}
}
}, - "required": [ ]
}, - "created_at": "2024-12-25T07:42:02Z",
- "updated_at": "2024-12-25T07:42:02Z"
}, - {
- "id": "78a1d026-2d1a-4efe-ba24-2d4930288109",
- "name": "water_supply",
- "canonical_name": "water_supply",
- "extra_schema": {
- "type": "object",
- "properties": {
- "water_regime_before_planting": {
- "type": [
- "null",
- "string"
], - "enum": [
- "non_flooded_less_than_180_days",
- "non_flooded_greater_than_180_days",
- "flooded_greater_than_30_days",
- "non_flooded_greater_than_365_days"
]
}, - "water_regime_while_planting": {
- "type": [
- "null",
- "string"
], - "enum": [
- "irrigated_continuously_flooded",
- "irrigated_single_drainage",
- "irrigated_multiple_drainage",
- "deep_water",
- "rainfed_regular",
- "rainfed_drought_prone"
]
}
}, - "required": [ ]
}, - "created_at": "2024-12-25T07:42:02Z",
- "updated_at": "2024-12-25T07:42:02Z"
}, - {
- "id": "656012ba-2cc2-4a22-88b3-2e1939ea4959",
- "name": "soil_observation",
- "canonical_name": "soil_observation",
- "extra_schema": {
- "type": "object",
- "properties": {
- "soil_type": {
- "type": [
- "null",
- "string"
], - "enum": [
- "sandy",
- "sandy_loam",
- "sandy_clay_loam",
- "sandy_clay",
- "loamy_sand",
- "loamy",
- "clay_loam",
- "clay",
- "silty_clay",
- "silty_clay_loam",
- "silty_loam",
- "silt",
- "no_data",
- "other"
]
}
}, - "required": [ ]
}, - "created_at": "2024-12-25T07:42:02Z",
- "updated_at": "2024-12-25T07:42:02Z"
}, - {
- "id": "ca43e2df-dd2a-4ade-a67d-58ddd73d30ea",
- "name": "inspection",
- "canonical_name": "inspection",
- "extra_schema": {
- "type": "object",
- "properties": {
- "rating": {
- "type": [
- "null",
- "integer"
], - "minimum": 1,
- "maximum": 5
}, - "estimated_production": {
- "type": [
- "null",
- "number"
], - "minimum": 0
}, - "estimated_area_loss": {
- "type": [
- "null",
- "number"
], - "minimum": 0
}, - "cause_of_loss": {
- "type": [
- "null",
- "string"
], - "enum": [
- "BY_FLOOD",
- "BY_DROUGHT",
- "BY_DISEASE",
- "BY_WEED",
- "BY_OTHER"
]
}
}, - "required": [ ]
}, - "created_at": "2024-12-25T07:42:02Z",
- "updated_at": "2024-12-25T07:42:02Z"
}, - {
- "id": "b3236cb7-6928-4f7c-9d6e-573bfbed0773",
- "name": "Activity 775878937",
- "canonical_name": "1",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:43Z",
- "updated_at": "2024-12-25T07:53:43Z"
}, - {
- "id": "f0c36c61-fd6e-4b16-8662-0771dfe88acc",
- "name": "Activity 259899482",
- "canonical_name": "2",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:43Z",
- "updated_at": "2024-12-25T07:53:43Z"
}, - {
- "id": "90873399-c0c3-43a1-b85b-d62fa5ef4826",
- "name": "Activity 776956963",
- "canonical_name": "3",
- "extra_schema": null,
- "created_at": "2024-12-25T07:53:43Z",
- "updated_at": "2024-12-25T07:53:43Z"
}
]
Create a new attachment for an activity
Creates attachments for an activity. Requires organization write access
Authorizations:
path Parameters
id required | string |
Request Body schema: multipart/form-data
attachment required | string <binary> binary file to upload |
Responses
Response samples
- 200
[- {
- "id": 9,
- "content_type": "image/jpeg",
}
]
List of crops
Get a list of all crops added in the system
Authorizations:
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
filter[query] | string Example: filter[query]=banana Search crops by query |
filter[lang] | string Enum: "th" "en" "ja" "vi" Example: filter[lang]=th User language (used for searching) |
Responses
Response samples
- 200
[- {
- "id": "5b109748-6e17-4f31-b63b-cb387375ef2c",
- "name": "asparagus",
- "canonical_name": "canonical_681049409",
- "variety": "Chocolate Hashberry",
- "genus": "genus_517478947",
- "name_i18n": {
- "en": "asparagus",
- "th": "หน่อไม้ฝรั่ง"
}, - "variety_i18n": {
- "en": "Soul Assassin"
}
}, - {
- "id": "b7e58725-3a61-43b7-b2ae-e5d084f189aa",
- "name": "test1",
- "canonical_name": "canonical_399148048",
- "variety": "King Kong OG",
- "genus": "genus_271885626",
- "name_i18n": {
- "en": "test1"
}, - "variety_i18n": {
- "en": "Alien Diesel"
}
}, - {
- "id": "3570e119-d16f-4bca-9208-cf3cc07c6c4b",
- "name": "test2",
- "canonical_name": "canonical_667879373",
- "variety": "Presidential OG",
- "genus": "genus_761366384",
- "name_i18n": {
- "en": "test2"
}, - "variety_i18n": {
- "en": "Candy Skunk"
}
}
]
Create a new cropzone
Creates a cropzone under field,
requires organizations:write scope
Authorizations:
path Parameters
field_id required | string |
Request Body schema: application/json
name | string Cropzone name |
crop_id | string |
note | string Note for a field, limits to 140 characters only. |
prev_cropzone_id | string Previous cropzone ID for history linking |
generation | number Generation. For crops like sugarcane |
planting_date | string Planting date follows iso8601 format |
Responses
Request samples
- Payload
{- "name": "Cropzone name",
- "crop_id": "c2a55fb8-c80c-4d17-9d6c-aff094d6d38b",
- "note": "note for a cropzone",
- "prev_cropzone_id": "982499fd-a09c-4bea-b7bf-1e905007138c",
- "generation": 1,
- "planting_date": "2021-04-29T11:36:00Z",
- "location": {
- "type": "Point",
- "coordinates": [
- [
- [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
]
]
]
}
}
Response samples
- 200
{- "id": "217cfecf-e4ed-4a10-bb0f-b6b82a560d8d",
- "slug": "sparkling-wildflower-83",
- "name": "X search Test X",
- "area": 573,
- "area_unit": "m2",
- "note": "this is a cropzone note",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 35.06007193026893,
- 8.338628423532356,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 35.05991484486984,
- 8.338703214353401
], - [
- 35.05991484486984,
- 8.338553632658588
], - [
- 35.06022901566706,
- 8.338553632658588
], - [
- 35.06022901566706,
- 8.338703214353401
], - [
- 35.05991484486984,
- 8.338703214353401
]
]
]
}
}, - "start_date": "2021-04-29T11:36:00Z",
- "end_date": null,
- "planting_date": "2021-04-29T11:36:00Z",
- "dap": 1336,
- "crop": {
- "id": "619db8f0-300b-4c62-976c-ebe7287e3182",
- "name": "rice",
- "canonical_name": "rice_jasmine_105",
- "variety": "Hardcore Grapes",
- "genus": "genus_723761987",
- "name_i18n": {
- "en": "Raskal OG"
}, - "variety_i18n": {
- "en": "Saturn OG"
}
}, - "field_id": "50c3d8a8-2b5b-49b2-92de-4edb1c33117f",
- "field": {
- "id": "50c3d8a8-2b5b-49b2-92de-4edb1c33117f",
- "name": "X search Test X"
}, - "farm": {
- "id": "4821bae9-a6ba-45b1-8413-000324fa67b4",
- "name": "Baumbach, Klocko and Thiel",
- "phone": null
}, - "season": null,
- "activities_count": 1,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": "2021-11-11T11:36:00Z",
- "maturity_date_computed_at": "2024-12-25T07:54:17Z",
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 2,
- "next_cropzone": null,
- "prev_cropzone": {
- "id": "e7847c3e-2349-4798-b097-394bc152c33b"
}, - "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:17Z",
- "updated_at": "2024-12-25T07:54:17Z",
- "latest_vis": [ ]
}
List of cropzones related to a field
Get a list of all cropzones associated with the field with `field_id` provided in url
Required `organizations:read` scope to access
Authorizations:
path Parameters
field_id required | string |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
filter[status] | string Example: filter[status]=all status can be all, current, archived. All will show all cropzones, current the non archived, and archived only the archived cropzones |
filter[query] | string Example: filter[query]=searchTerm Searches cropzone by cropzone name or crop name (ignoring case) |
Responses
Response samples
- 200
[- {
- "id": "845ba62e-5bc1-4735-93fa-e1d64d52256f",
- "slug": "shy-moon-80",
- "name": "X search Test X",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:54:22Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "450dd32a-bd66-4a4e-a6ee-e2f9b57cff8a",
- "name": "rice",
- "canonical_name": "rice_jasmine_105",
- "variety": "White Tahoe Cookies",
- "genus": "genus_275308757",
- "name_i18n": {
- "en": "Granddaddy Purple Kush"
}, - "variety_i18n": {
- "en": "Lemon Meringue"
}
}, - "field_id": "869cf78a-de39-4905-be22-f62437e93db9",
- "field": {
- "id": "869cf78a-de39-4905-be22-f62437e93db9",
- "name": "X search Test X"
}, - "farm": {
- "id": "426ddefe-b073-443e-ac5e-c205c64968ee",
- "name": "Wintheiser-Bogan",
- "phone": null
}, - "season": null,
- "activities_count": null,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": "2024-12-25T07:54:22Z",
- "created_at": "2024-12-25T07:54:22Z",
- "updated_at": "2024-12-25T07:54:22Z",
- "latest_vis": [ ]
}, - {
- "id": "078016b4-0465-428c-9218-35461d1b146d",
- "slug": "winter-violet-30",
- "name": "X search Test X",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:54:22Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "2014e1c3-f632-4095-bbea-f26fb0e3caef",
- "name": "Sugar cane 101",
- "canonical_name": "sugar_cane_101",
- "variety": "Sour Cheese",
- "genus": "genus_440035897",
- "name_i18n": {
- "en": "Pink Lotus"
}, - "variety_i18n": {
- "en": "Candyland"
}
}, - "field_id": "869cf78a-de39-4905-be22-f62437e93db9",
- "field": {
- "id": "869cf78a-de39-4905-be22-f62437e93db9",
- "name": "X search Test X"
}, - "farm": {
- "id": "426ddefe-b073-443e-ac5e-c205c64968ee",
- "name": "Wintheiser-Bogan",
- "phone": null
}, - "season": null,
- "activities_count": null,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": "2024-12-25T07:54:22Z",
- "created_at": "2024-12-25T07:54:22Z",
- "updated_at": "2024-12-25T07:54:22Z",
- "latest_vis": [ ]
}
]
Update cropzone information
Update Cropzone info. You must have an API token with the organizations:write
scope.
Authorizations:
path Parameters
id required | string |
Request Body schema: application/json
name | string Cropzone name |
crop_id | string |
note | string Note for a field, limits to 140 characters only. |
prev_cropzone_id | string Previous cropzone ID for history linking |
generation | number Generation. For crops like sugarcane |
planting_date | string Planting date follows iso8601 format |
Responses
Request samples
- Payload
{- "name": "Cropzone name",
- "crop_id": "c2a55fb8-c80c-4d17-9d6c-aff094d6d38b",
- "note": "note for a cropzone",
- "prev_cropzone_id": "982499fd-a09c-4bea-b7bf-1e905007138c",
- "generation": 1,
- "planting_date": "2021-04-29T11:36:00Z",
- "location": {
- "type": "Point",
- "coordinates": [
- [
- [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
]
]
]
}
}
Response samples
- 200
{- "id": "917e38b4-be5f-4b08-a388-5c35c9afb342",
- "slug": "crimson-sound-24",
- "name": "cropzone 257625848",
- "area": 199,
- "area_unit": "m2",
- "note": "42",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2022-04-10T17:00:00Z",
- "end_date": "2022-07-02T17:00:00Z",
- "planting_date": "2022-04-10T17:00:00Z",
- "dap": 990,
- "crop": {
- "id": "5e6c2021-085a-425a-926e-6b9817aedfb2",
- "name": "rice",
- "canonical_name": "rice_jasmine_105",
- "variety": "Forbidden Fruit",
- "genus": "genus_692648652",
- "name_i18n": {
- "en": "Sherbert"
}, - "variety_i18n": {
- "en": "Canna Sutra"
}
}, - "field_id": "558c8145-3b80-4b5f-bb3d-a4f7dcfeec12",
- "field": {
- "id": "558c8145-3b80-4b5f-bb3d-a4f7dcfeec12",
- "name": "X search Test X"
}, - "farm": {
- "id": "23e9a25f-c6d2-48b9-ba1b-5d561f9e9211",
- "name": "Halvorson, Brakus and Satterfield",
- "phone": null
}, - "season": null,
- "activities_count": 2,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": "2022-11-10T17:00:00Z",
- "maturity_date_computed_at": "2024-12-25T07:54:21Z",
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:20Z",
- "updated_at": "2024-12-25T07:54:21Z",
- "latest_vis": [ ],
- "actual": {
- "harvesting_date": "2022-07-02T17:00:00Z",
- "harvest": "22.3",
- "harvest_unit": "tons",
- "yield": "0.1120603015075377",
- "yield_unit": "tons/m2"
}
}
Response samples
- 200
{- "id": "6dc2c636-000c-4180-badf-c23b6a889005",
- "slug": "snowy-cloud-58",
- "name": "cropzone 936421791",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:54:38Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "4d01b93d-d6c6-4574-8b51-8a73068a7894",
- "name": "rice",
- "canonical_name": "rice_jasmine_105",
- "variety": "Banana OG",
- "genus": "genus_332266352",
- "name_i18n": {
- "en": "Lemon Skunk"
}, - "variety_i18n": {
- "en": "Colfax Jack"
}
}, - "field_id": "f76d7201-5368-401b-851e-50323dd87994",
- "field": {
- "id": "f76d7201-5368-401b-851e-50323dd87994",
- "name": "X search Test X"
}, - "farm": {
- "id": "91c10d81-fed9-49d3-8884-d16582774162",
- "name": "Batz Group",
- "phone": null
}, - "season": null,
- "activities_count": null,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:38Z",
- "updated_at": "2024-12-25T07:54:38Z",
- "latest_vis": [ ]
}
Renew a cropzone for a new season
Renew a cropzone for a new season. Copies all attributes of current cropzone into a new one for the next season. You must have an API token with the organizations:admin
or organizations:write
scope.
Authorizations:
path Parameters
id required | string |
Responses
Response samples
- 200
{- "id": "464703a2-d938-4fae-b7b1-f445ec01e078",
- "slug": "late-leaf-70",
- "name": "cropzone 184924330",
- "area": 199,
- "area_unit": "m2",
- "note": null,
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:54:20Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "7d6f49b7-c69e-4bea-b38e-f11ebfcc42b1",
- "name": "rice",
- "canonical_name": "rice_jasmine_105",
- "variety": "Super Jack",
- "genus": "genus_913110649",
- "name_i18n": {
- "en": "Alien Diesel"
}, - "variety_i18n": {
- "en": "Canna Sutra"
}
}, - "field_id": "b10b7037-276a-414f-8458-dc93c8ef8385",
- "field": {
- "id": "b10b7037-276a-414f-8458-dc93c8ef8385",
- "name": "X search Test X"
}, - "farm": {
- "id": "cd86e4c4-94d3-4599-aab0-1a62dd00d00e",
- "name": "Terry Inc",
- "phone": null
}, - "season": null,
- "activities_count": null,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 1,
- "next_cropzone": null,
- "prev_cropzone": {
- "id": "89c69529-21b5-418f-b5c7-e9f4218e1459"
}, - "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:20Z",
- "updated_at": "2024-12-25T07:54:20Z",
- "latest_vis": [ ]
}
List of cropzones related to an organization
Get a list of all cropzones associated with the organization with organization_id
provided in urlRequired organizations:read
scope to access
Authorizations:
path Parameters
organization_id required | string |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
boundary | string Boundary array with two points to get cropzones within the box created by these two points, returns groups array if size >= 200 |
distance | string Used in conjunction with boundary parameter. Distance in meters between fields to consider them grouped. |
z | string Used in conjunction with boundary and distance parameter. Zoom level from 0 to 20. Default 0. If the level is < 13 you always get groups. |
status | string Example: status=all status can be all, current, archived. All will show all cropzones, current the non archived, and archived only the archived cropzones |
field_id | string Example: field_id=6d64031e-fc77-41a5-8c58-9e73faf6d02e Filter cropzones by field_id |
sort_by | string Can be one of name_asc,name_desc,farm_asc,farm_desc,crop_asc,crop_desc,slug_asc,slug_desc,created_at_asc,created_at_desc,maturity_date_predicted_asc,maturity_date_predicted_desc,planting_date_asc,planting_date_desc,dap_asc,dap_desc,harvest_date_asc,harvest_date_desc,production_predicted_asc,production_predicted_desc,production_actual_asc,production_actual_desc,yield_predicted_asc,yield_predicted_desc,yield_actual_asc,yield_actual_desc,predicted_ccs_asc,predicted_ccs_desc,crop_quality_asc,crop_quality_desc,harvest_destination_asc,harvest_destination_desc,income_asc,income_desc,distance. If sort_by=distance then you also need to provide location=lng,lat , which is the location to show the distance from |
location | string Example: location=128.1288242340088,36.864428996284325 lng,lat. Location of the origin point for the sort_by=distance sorting |
include | string Comma separated list of related required objects in the response |
filter[crop_id] | string Example: filter[crop_id]=6d64031e-fc77-41a5-8c58-9e73faf6d02e Filter cropzones by crop_id |
filter[season_id] | string Example: filter[season_id]=6d64031e-fc77-41a5-8c58-9e73faf6d02e Filter cropzones by season_id |
filter[query] | string Example: filter[query]=searchTerm Searches cropzone by cropzone name or crop name (ignoring case) |
filter[status] | string Example: filter[status]=all status can be all, current, archived. All will show all cropzones, current the non archived, and archived only the archived cropzones |
filter[labels][] | Array of arrays Filter by labels |
filter[start_date_from] | string Example: filter[start_date_from]=2022-11-22T16:18:23+09:00 Filter by start date from |
filter[start_date_to] | string Example: filter[start_date_to]=2022-11-22T16:18:23+09:00 Filter by start date to |
filter[end_date_from] | string Example: filter[end_date_from]=2022-11-22T16:18:23+09:00 Filter by end date from |
filter[end_date_to] | string Example: filter[end_date_to]=2022-11-22T16:18:23+09:00 Filter by end date to |
filter[farm_id] | string Example: filter[farm_id]=0803d415-e933-476a-96fe-4607e47fecd0 Filter by farm_id |
Responses
Response samples
- 200
[- {
- "id": "f2bdb4bd-b447-48ff-977b-645bf27afc4a",
- "slug": "patient-forest-98",
- "name": "cropzone 632095592",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "start_date": "2024-12-25T07:54:24Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "c9e7b330-3edc-4b70-a3fc-64f67b49be58",
- "name": "Sugar cane 101",
- "canonical_name": "sugar_cane_101",
- "variety": "Bio-Diesel",
- "genus": "genus_150069201",
- "name_i18n": {
- "en": "Key Lime Pie"
}, - "variety_i18n": {
- "en": "Master OG"
}
}, - "field_id": "55efef5b-fe8d-482f-a7f5-bee1de502eb7",
- "field": {
- "id": "55efef5b-fe8d-482f-a7f5-bee1de502eb7",
- "name": "X search Test X"
}, - "farm": {
- "id": "49fbea45-bfff-4db8-beb5-035891d5059f",
- "name": "White-Luettgen",
- "phone": null
}, - "season": null,
- "activities_count": null,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:24Z",
- "updated_at": "2024-12-25T07:54:24Z",
- "latest_vis": [ ]
}
]
List of cropzones related to an organization in geojson format
Get a list of all cropzones associated with the organization with `organization_id` provided in url.
Body parameters are the same as /organizations/{organization_id}/cropzones. Only response format changes (geojson)
Authorizations:
path Parameters
organization_id required | string |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
Responses
Response samples
- 200
{- "type": "FeatureCollection",
- "crs": {
- "type": "name",
- "properties": {
- "name": "urn:ogc:def:crs:OGC:1.3:CRS84"
}
}, - "features": [
- {
- "type": "Feature",
- "properties": {
- "id": "d05a83a0-8731-499c-bc9a-46a0e9d32f60",
- "slug": "weathered-sun-99",
- "name": "cropzone 353287220",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}
}, - "start_date": "2024-12-25T07:54:36Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "c169efa9-f070-4afe-b390-b8dfd8c97973",
- "name": "Sugar cane 101",
- "canonical_name": "sugar_cane_101",
- "variety": "Gorilla Princess",
- "genus": "genus_254567795",
- "name_i18n": {
- "en": "Blackwater OG"
}, - "variety_i18n": {
- "en": "Redwood Bubba Kush"
}
}, - "field_id": "f8d8ee8f-b1fc-4f67-bae5-18dd0410aa08",
- "field": {
- "id": "f8d8ee8f-b1fc-4f67-bae5-18dd0410aa08",
- "name": "X search Test X"
}, - "farm": {
- "id": "698d8160-b42a-4b49-841e-466436c8f07d",
- "name": "Gerlach-Stokes",
- "phone": null
}, - "season": null,
- "activities_count": null,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:36Z",
- "updated_at": "2024-12-25T07:54:36Z",
- "latest_vis": [ ]
}, - "geometry": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - {
- "type": "Feature",
- "properties": {
- "id": "2f7d6240-aaa3-42c9-b792-f0bd012b66a8",
- "slug": "cold-night-11",
- "name": "cropzone 318982543",
- "area": 199,
- "area_unit": "m2",
- "note": "note for cropzone",
- "labels": [ ],
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}
}, - "start_date": "2024-12-25T07:54:36Z",
- "end_date": null,
- "planting_date": null,
- "dap": null,
- "crop": {
- "id": "c169efa9-f070-4afe-b390-b8dfd8c97973",
- "name": "Sugar cane 101",
- "canonical_name": "sugar_cane_101",
- "variety": "Gorilla Princess",
- "genus": "genus_254567795",
- "name_i18n": {
- "en": "Blackwater OG"
}, - "variety_i18n": {
- "en": "Redwood Bubba Kush"
}
}, - "field_id": "f8d8ee8f-b1fc-4f67-bae5-18dd0410aa08",
- "field": {
- "id": "f8d8ee8f-b1fc-4f67-bae5-18dd0410aa08",
- "name": "X search Test X"
}, - "farm": {
- "id": "698d8160-b42a-4b49-841e-466436c8f07d",
- "name": "Gerlach-Stokes",
- "phone": null
}, - "season": null,
- "activities_count": null,
- "soil_samples_count": 0,
- "preview_uri": null,
- "predicted": {
- "maturity_date": null,
- "maturity_date_computed_at": null,
- "harvest": "",
- "harvest_unit": "tons",
- "harvest_computed_at": null,
- "yield": "",
- "yield_unit": "tons/m2",
- "yield_computed_at": null
}, - "generation": 0,
- "next_cropzone": null,
- "prev_cropzone": null,
- "rs_stopped_at": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:36Z",
- "updated_at": "2024-12-25T07:54:36Z",
- "latest_vis": [ ]
}, - "geometry": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}
]
}
Create a new farm
Create a new farm for your user. You must have an API token with the organizations:write
scope (farms are organizations).
Authorizations:
Request Body schema: application/json
name required | string |
phone | string or null |
address | string or null |
Responses
Request samples
- Payload
{- "name": "Listenfield",
- "phone": "+50712264117793",
- "address": "9756 Gutkowski Inlet"
}
Response samples
- 200
- 401
{- "id": "c9c7d835-d6d9-4889-b39a-d1193a17dd4a",
- "name": "test1",
- "email": null,
- "address": "Tokyo-to Shinjuku-Ku Okubo",
- "phone": "+819012121212",
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "billowing-snowflake-0",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:54:38Z",
- "updated_at": "2024-12-25T07:54:38Z"
}
Get the list of farms
Get list of Farms associated to current token owner. You must have an API token with the organizations:read
scope (farms are organizations).
Authorizations:
query Parameters
page | integer Default: 1 Page number |
Responses
Response samples
- 200
[- {
- "id": "5ea89743-dddc-4c7b-a111-390f64abd4ae",
- "name": "Dibbert-Senger",
- "email": "dina_legros@carter-boehm.org",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "damp-field-23",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:54:39Z",
- "updated_at": "2024-12-25T07:54:39Z"
}
]
Response samples
- 200
{- "id": "580d26e3-2085-451a-bd53-5987ac0b5cc1",
- "name": "Mraz, Mills and Blick",
- "email": "wm.mueller@kautzer.io",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "sparkling-sky-82",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:54:39Z",
- "updated_at": "2024-12-25T07:54:39Z",
- "stats": {
- "total_fields": 0,
- "total_fields_area": null,
- "total_cropzones_area": 0
}
}
Create a new farm in Organization
Create Farms. You must have an API token with the organizations:write
scope.
Authorizations:
path Parameters
organization_id required | string |
Request Body schema: application/json
name required | string |
phone | string |
address | string |
Responses
Request samples
- Payload
{- "name": "Listenfield",
- "phone": "+819012121212",
- "address": "Tokyo-to Shinjuku-Ku Okubo 1-1-1"
}
Response samples
- 200
- 401
{- "id": "17833560-822c-4f58-9734-788c040b40b0",
- "name": "test1",
- "email": null,
- "address": "Tokyo-to Shinjuku-Ku Okubo",
- "phone": "+819014141414",
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "holy-star-63",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:54:40Z",
- "updated_at": "2024-12-25T07:54:40Z"
}
Get farms of an Organization
Get the farms of an Organization
Authorizations:
path Parameters
organization_id required | string |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
filter[query] | string Searches farms by farm name (ignoring case) |
Request Body schema: application/json
Responses
Request samples
- Payload
"string"
Response samples
- 200
[- {
- "id": "4852dce1-786f-4d8c-8d36-27d9be07d0f6",
- "name": "Feest-Lebsack",
- "email": "delfina_collier@harvey-stracke.io",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "autumn-cloud-68",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:54:40Z",
- "updated_at": "2024-12-25T07:54:40Z"
}
]
Create a new field
Creates a field under farm,
requires organization write access
Authorizations:
path Parameters
farm_id required | string |
Request Body schema: application/json
name | string or null Name of field |
note | string or null Note for a field, limits to 140 chars |
required | object |
Responses
Request samples
- Payload
{- "name": "Listenfield field",
- "note": "Note for field",
- "location": {
- "type": "Polygon",
- "coordinates": [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
]
]
}
}
Response samples
- 200
{- "id": "ece8a407-586d-450d-98bc-f3e9356b40cc",
- "farm_id": "6187bceb-7af5-411e-8304-3c8c4350458b",
- "name": "field name",
- "area": 573,
- "area_unit": "m2",
- "note": null,
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 35.06007193026893,
- 8.338628423532356,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 35.05991484486984,
- 8.338703214353401
], - [
- 35.05991484486984,
- 8.338553632658588
], - [
- 35.06022901566706,
- 8.338553632658588
], - [
- 35.06022901566706,
- 8.338703214353401
], - [
- 35.05991484486984,
- 8.338703214353401
]
]
]
}
}, - "crops_summary": [ ],
- "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:40Z",
- "updated_at": "2024-12-25T07:54:40Z"
}
List of fields
Get a list of all fields associated with the farm with farm_id
provided in urlRequired organizations:read
scope to access
Authorizations:
path Parameters
farm_id required | string |
query Parameters
status | string Example: status=all status can be all, current, archived. All will show all fields, current the non archived, and archived only the archived fields |
archived | string Example: archived=true (DEPRECATED use status) adding archived=true in the query will return all archived fields |
unfiltered | string Example: unfiltered=unfiltered (DEPRECATED use status) adding unfiltered in the query will return all archived and unarchived fields |
query | string Example: query=searchTerm Only returns fields matching the search term (in name or note fields) |
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
Responses
Response samples
- 200
[- {
- "id": "449239cf-7e6e-4af4-9d95-b7bea9575780",
- "farm_id": "4ceb74b0-7dcb-4688-9549-d05c0cf7d13e",
- "name": "field 468314216",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [ ],
- "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:43Z",
- "updated_at": "2024-12-25T07:54:43Z",
- "farm": {
- "id": "4ceb74b0-7dcb-4688-9549-d05c0cf7d13e",
- "name": "Wunsch, Ratke and Kris",
- "email": "inga@okuneva-ebert.name",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "muddy-cherry-2",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:54:43Z",
- "updated_at": "2024-12-25T07:54:43Z"
}
}, - {
- "id": "5ca0d5c0-c81e-48f1-9345-f426c1941596",
- "farm_id": "4ceb74b0-7dcb-4688-9549-d05c0cf7d13e",
- "name": "field 799932520",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [ ],
- "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:43Z",
- "updated_at": "2024-12-25T07:54:43Z",
- "farm": {
- "id": "4ceb74b0-7dcb-4688-9549-d05c0cf7d13e",
- "name": "Wunsch, Ratke and Kris",
- "email": "inga@okuneva-ebert.name",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "muddy-cherry-2",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:54:43Z",
- "updated_at": "2024-12-25T07:54:43Z"
}
}
]
Response samples
- 200
{- "id": "6d8a439a-49cc-4aee-95c5-0ed8c62bc880",
- "farm_id": "42155355-07a3-4962-b1a9-4fc91e90f2d9",
- "name": "field 343597423",
- "area": 199,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [
- 21.443065866029457,
- 80.22122629399496,
- 42
]
}, - "boundary": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 21.442804,
- 80.221254
], - [
- 21.443038,
- 80.221088
], - [
- 21.443101,
- 80.221053
], - [
- 21.443271,
- 80.22112
], - [
- 21.443233,
- 80.221301
], - [
- 21.443027,
- 80.221401
], - [
- 21.442804,
- 80.221254
]
]
]
}
}, - "crops_summary": [ ],
- "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:44Z",
- "updated_at": "2024-12-25T07:54:44Z",
- "farm": {
- "id": "42155355-07a3-4962-b1a9-4fc91e90f2d9",
- "name": "Kessler-Little",
- "email": "rosario_casper@windler-strosin.io",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "wild-morning-65",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:54:44Z",
- "updated_at": "2024-12-25T07:54:44Z"
}
}
Get fields of an Organization
Get the fields of an Organization
Authorizations:
path Parameters
organization_id required | string |
query Parameters
boundary | string Boundary array with two points to get fields within the box created by these two points, returns groups array if size >= 50 |
distance | string Used in conjunction with boundary parameter. Distance in meters between fields to consider them grouped. |
page | integer Default: 1 Page Integer |
farm_id | string Example: farm_id=1d590f61-e940-488d-884d-7de3cc7e6d18 Only returns fields from the specified farm |
Responses
Response samples
- 200
[- {
- "id": "028ff13b-985b-4790-8ab4-fa85f6f2e439",
- "farm_id": "523a65d7-fa5f-4ce7-8841-e125248ea5da",
- "name": "field 323861377",
- "area": null,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [ ]
}, - "boundary": [ ]
}, - "crops_summary": [
- {
- "id": "6d3b6581-e762-4dfb-a2eb-84499e8d1212",
- "name": "Omaha Farms387317035",
- "canonical_name": "canonical_671744639",
- "variety": "Super Jack",
- "genus": "genus_982714636",
- "name_i18n": {
- "en": "Gorilla Princess"
}, - "variety_i18n": {
- "en": "OG Salad"
}
}
], - "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:45Z",
- "updated_at": "2024-12-25T07:54:45Z",
- "farm": {
- "id": "523a65d7-fa5f-4ce7-8841-e125248ea5da",
- "name": "Jones-Ernser",
- "email": "fernando_kassulke@kunde.co",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "dry-river-92",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:54:45Z",
- "updated_at": "2024-12-25T07:54:45Z"
}
}
]
Get fields of an Organization in geojson format
Get the fields of an Organization in geojson format
Authorizations:
path Parameters
organization_id required | string |
query Parameters
boundary | string Boundary array with two points to get fields within the box created by these two points, returns groups array if size >= 50 |
page | integer Default: 1 Page Integer |
Responses
Response samples
- 200
{- "type": "FeatureCollection",
- "crs": {
- "type": "name",
- "properties": {
- "name": "urn:ogc:def:crs:OGC:1.3:CRS84"
}
}, - "features": [
- {
- "type": "Feature",
- "properties": {
- "id": "3fae7214-90b2-4177-a1e7-64a97699ca15",
- "farm_id": "3793834a-898c-4404-b0ea-723347e6f66e",
- "name": "field 718390446",
- "area": null,
- "area_unit": "m2",
- "note": "note for field",
- "timezone": "UTC",
- "location": {
- "centroid": {
- "type": "Point",
- "coordinates": [ ]
}
}, - "crops_summary": [
- {
- "id": "500a06cc-3a44-4a6c-a030-035c17a30a2a",
- "name": "THC Design357660505",
- "canonical_name": "canonical_713106821",
- "variety": "Sour Cheese",
- "genus": "genus_761013036",
- "name_i18n": {
- "en": "Sherbert"
}, - "variety_i18n": {
- "en": "Granddaddy Purple Kush"
}
}
], - "preview_uri": null,
- "archived_at": null,
- "created_at": "2024-12-25T07:54:49Z",
- "updated_at": "2024-12-25T07:54:49Z"
}, - "geometry": [ ]
}
]
}
List organizations
List Organizations the token belongs to.
Authorizations:
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
Responses
Response samples
- 200
- 401
[- {
- "id": "39e3b36f-858d-4725-95e7-08bb89267251",
- "name": "Kilback-Okuneva",
- "email": "steven_hartmann@schulist-simonis.com",
- "address": "37748 Lakeshia Cliffs",
- "phone": "(559) 130-1303",
- "description": "Ut voluptas dolor eaque.",
- "location": null,
- "preview_uri": null,
- "slug": "patient-water-44",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:55:13Z",
- "updated_at": "2024-12-25T07:55:13Z"
}
]
Get Organization info
Get Organization info. Is is possible to access very basic information (name) of an organization you are not part of.
Authorizations:
path Parameters
id required | string |
Responses
Response samples
- 200
{- "id": "be72e712-6f97-442e-8c7b-45b01ed88502",
- "name": "West-Doyle",
- "email": "ara@casper-conn.biz",
- "address": null,
- "phone": null,
- "description": null,
- "location": null,
- "preview_uri": null,
- "slug": "summer-glitter-69",
- "features": {
- "production_graphs": true
}, - "prod_targets": { },
- "created_at": "2024-12-25T07:55:14Z",
- "updated_at": "2024-12-25T07:55:14Z",
- "crop_summary": [
- {
- "name": "rice",
- "name_i18n": {
- "en": "Chem Berry"
}
}
], - "stats": {
- "total_fields": 1,
- "total_fields_area": 199,
- "total_cropzones_area": 1990
}
}
Update Organization info
Update Organizations info.
Authorizations:
path Parameters
id required | string |
Request Body schema: application/json
name | string |
string | |
phone | string |
address | string |
object | |
object |
Responses
Request samples
- Payload
{- "name": "Listenfield",
- "email": "info@listenfield.com",
- "phone": "+819012121212",
- "address": "Tokyo-to Shinjuku-Ku Okubo 1-1-1",
- "location": {
- "type": "Point",
- "coordinates": [
- 12.21,
- 30.22
]
}, - "prod_targets": {
- "daily_max": 100,
- "daily_min": 100
}
}
Response samples
- 200
- 400
{- "id": "c22e9a4b-80ba-4539-9c92-c8e89288dd22",
- "name": "Nolan Group",
- "email": "felicia@durgan.net",
- "address": "3953 Koepp River",
- "phone": "577-485-6590",
- "description": "Ut qui non molestiae.",
- "location": null,
- "preview_uri": null,
- "slug": "late-cloud-63",
- "features": {
- "production_graphs": true
}, - "prod_targets": {
- "daily_max": "1000.0",
- "daily_min": "42.0"
}, - "created_at": "2024-12-25T07:55:18Z",
- "updated_at": "2024-12-25T07:55:18Z"
}
List all the places of an organization
Get all the places in the system
Authorizations:
path Parameters
organization_id required | string Organization UUID |
query Parameters
page | integer Default: 1 Page number |
Responses
Response samples
- 200
[- {
- "id": "d9966200-1361-4391-9d4c-4231c758051a",
- "name": "Dickinson-Walsh",
- "description": "Example of description of goods",
- "phone": "+819012121212",
- "city": "Bangkok",
- "address": "7, Prampong Road",
- "lnglat": {
- "type": "Point",
- "coordinates": [
- 100.47,
- 13.7563
]
}, - "created_at": "2024-12-25T07:55:21Z",
- "updated_at": "2024-12-25T07:55:21Z"
}, - {
- "id": "6e9cb98b-bd86-4e17-855f-3a8164dae18b",
- "name": "Kessler Group",
- "description": "Example of description of goods",
- "phone": "+819012121212",
- "city": "Bangkok",
- "address": "7, Prampong Road",
- "lnglat": {
- "type": "Point",
- "coordinates": [
- 100.47,
- 13.7563
]
}, - "created_at": "2024-12-25T07:55:21Z",
- "updated_at": "2024-12-25T07:55:21Z"
}, - {
- "id": "7d98c065-81e0-41fd-908d-696ee7a8e791",
- "name": "Wunsch, Mraz and Jerde",
- "description": "Example of description of goods",
- "phone": "+819012121212",
- "city": "Bangkok",
- "address": "7, Prampong Road",
- "lnglat": {
- "type": "Point",
- "coordinates": [
- 100.47,
- 13.7563
]
}, - "created_at": "2024-12-25T07:55:21Z",
- "updated_at": "2024-12-25T07:55:21Z"
}
]
Create a new place
Create a new place
Authorizations:
path Parameters
organization_id required | string Organization UUID |
Request Body schema: application/json
name required | string |
phone | string |
description | string |
city | string |
address | string |
location | Array of arrays Array of longitude, latitude |
Responses
Request samples
- Payload
{- "name": "ABC Factory",
- "phone": "+819012121212",
- "description": "Example of description of goods",
- "city": "Bangkok",
- "address": "7 Prompong Road, Bangkok 10110",
- "location": [
- 12.21,
- 30.22
]
}
Response samples
- 200
{- "id": "c217a93c-b0fd-493f-93ae-4b8128531c16",
- "name": "Test Factory",
- "description": "Test description",
- "phone": "+819012121212",
- "city": "Hanoi",
- "address": "18, Minh Street",
- "lnglat": {
- "type": "Point",
- "coordinates": [
- 40.714232,
- -73.961289
]
}, - "created_at": "2024-12-25T07:55:21Z",
- "updated_at": "2024-12-25T07:55:21Z"
}
Updates a place
Update a place.
Authorizations:
path Parameters
id required | string |
Request Body schema: application/json
name | string |
phone | string |
city | string |
address | string |
location | Array of arrays Array of longitude, latitude |
Responses
Request samples
- Payload
{- "name": "ABC Factory",
- "phone": "+819012121212",
- "city": "Bangkok",
- "address": "7, Prompong Road",
- "location": [
- 12.21,
- 30.22
]
}
Response samples
- 200
{- "id": "ba151cd3-587b-40ca-b1e0-9147849124d3",
- "name": "New name",
- "description": "Example of description of goods",
- "phone": "+819012121212",
- "city": "Bangkok",
- "address": "7, Prampong Road",
- "lnglat": {
- "type": "Point",
- "coordinates": [
- 100.47,
- 13.7563
]
}, - "created_at": "2024-12-25T07:55:21Z",
- "updated_at": "2024-12-25T07:55:21Z"
}
Get a place
Get a place information.
Authorizations:
path Parameters
id required | string |
Responses
Response samples
- 200
- 401
- 404
{- "id": "d9c9a3c3-2420-4a1d-960e-27a61c424663",
- "name": "Lueilwitz-Lowe",
- "description": "Example of description of goods",
- "phone": "+819012121212",
- "city": "Bangkok",
- "address": "7, Prampong Road",
- "lnglat": {
- "type": "Point",
- "coordinates": [
- 100.47,
- 13.7563
]
}, - "created_at": "2024-12-25T07:55:22Z",
- "updated_at": "2024-12-25T07:55:22Z"
}
Get QR code of specified farm
Get QR code of specified farm. The QR code is returned as SVG and is signed and gzipped. You can verify it later with the /qr/verify endpoint
Authorizations:
path Parameters
organization_id required | string Organization UUID |
farm_id required | string Farm UUID |
Responses
Insert new measurements
Insert new measurements for a sensor
Authorizations:
path Parameters
sensor_id required | string Sensor UUID |
Request Body schema: application/json
data | object data json for the measurement |
read_at | string read_at follows iso8601 format |
Responses
Request samples
- Payload
[- {
- "data": {
- "TMIN": 42
}, - "read_at": "2021-07-16T10:20:11+00:00"
}
]
Response samples
- 200
{- "units": {
- "RAIN": "mm/day",
- "SRAD": "MJ/m^2/day",
- "TAVE": "C",
- "TMAX": "C",
- "TMIN": "C",
- "read_at": "iso8601"
}, - "measurements": [
- {
- "id": "f0cf6200-edcc-497a-9e86-6ed852500682",
- "read_at": "2021-05-05T23:48:00Z",
- "data": {
- "TMIN": 42.42
}
}
]
}
List of measurements
Get a list of all measurements associated with the sensor with sensor_id
provided in url
Required iot:read
scope to access
Authorizations:
path Parameters
sensor_id required | string |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
from | string To filter by read_at datetime from (ISO8601) |
to | string To filter by read_at datetime to (ISO8601) |
Responses
Response samples
- 200
{- "units": {
- "RAIN": "mm/day",
- "SRAD": "MJ/m^2/day",
- "TAVE": "C",
- "TMAX": "C",
- "TMIN": "C",
- "read_at": "iso8601"
}, - "measurements": [
- {
- "id": "ddf9ce44-3cb6-46fe-bacd-a22cea999bc3",
- "read_at": "2013-02-08T07:54:59Z",
- "data": {
- "TMIN": "324712272"
}
}, - {
- "id": "5ac51ae4-7418-4f09-ac9e-13eb0dd279fe",
- "read_at": "2021-01-01T00:00:00Z",
- "data": {
- "TMIN": "442062758"
}
}, - {
- "id": "5bba10f1-28b9-4dfa-a71d-0d33d6696030",
- "read_at": "2021-01-02T00:00:00Z",
- "data": {
- "TMIN": "350049607"
}
}
]
}
Update measurement info
Updates measurement info. You must have an API token with iot:write
scope in order to use this.
Authorizations:
path Parameters
id required | string |
Request Body schema: application/json
data | object data json for the measurement |
read_at | string read_at follows iso8601 format |
Responses
Request samples
- Payload
{- "data": {
- "TMIN": 12.12
}, - "read_at": "2021-07-16T10:20:11+00:00"
}
Response samples
- 200
{- "units": {
- "RAIN": "mm/day",
- "SRAD": "MJ/m^2/day",
- "TAVE": "C",
- "TMAX": "C",
- "TMIN": "C",
- "read_at": "iso8601"
}, - "measurements": [
- {
- "id": "bff909d0-25f3-4c39-8c24-de5c1eea8f76",
- "read_at": "2020-02-24T07:54:59Z",
- "data": {
- "TMIN": 10.1
}
}
]
}
measurement info
Get measurement info
Authorizations:
path Parameters
id required | string |
Responses
Response samples
- 200
{- "units": {
- "RAIN": "mm/day",
- "SRAD": "MJ/m^2/day",
- "TAVE": "C",
- "TMAX": "C",
- "TMIN": "C",
- "read_at": "iso8601"
}, - "measurements": [
- {
- "id": "efef046f-3ce0-48b1-a2a9-5f948accaf86",
- "read_at": "2015-01-24T07:55:00Z",
- "data": {
- "TMIN": "191530898"
}
}
]
}
Create a new sensor
Creates a new sensor under organization
Authorizations:
path Parameters
organization_id required | string Organization/Farm UUID |
Request Body schema: application/json
name required | string |
kind | string |
location | Array of numbers <float> [ items <float > ] [lng,lat] of location |
metadata | object or null |
units | object or null |
Responses
Request samples
- Payload
{- "name": "Temperature Sensor",
- "kind": "weather_station",
- "location": [
- 37.7749,
- -122.4194
], - "metadata": { },
- "units": {
- "temperature": "C"
}
}
Response samples
- 200
{- "id": "ce1be4be-6a6b-430a-a775-339ed61d83b9",
- "name": "Farm - A - solid sensor",
- "kind": "weather_station",
- "location": {
- "type": "Point",
- "coordinates": [
- 30,
- 45,
- 42
]
}, - "units": {
- "temp": "C"
}, - "metadata": {
- "obj": "value for sensor specs"
}, - "created_at": "2024-12-25T07:55:28Z",
- "updated_at": "2024-12-25T07:55:28Z"
}
List of sensors
Get a list of all sensors associated with the organization with organization_id
provided in urlRequired iot:read
scope to access
Authorizations:
path Parameters
organization_id required | string |
query Parameters
page | integer Default: 1 Page Integer |
lat | string |
lng | string |
Responses
Response samples
- 200
[- {
- "id": "970f49f6-bf70-43ad-8886-0d04d61860ff",
- "name": "Paper shredder",
- "kind": "weather_station",
- "location": {
- "type": "Point",
- "coordinates": [
- 70.837602,
- 70.924166,
- 42
]
}, - "units": {
- "TMIN": "C"
}, - "metadata": { },
- "created_at": "2024-12-25T07:55:29Z",
- "updated_at": "2024-12-25T07:55:29Z",
- "distance": null
}, - {
- "id": "125f05ba-49a7-4411-9686-b7eb9b10b6c8",
- "name": "Refrigerator",
- "kind": "weather_station",
- "location": {
- "type": "Point",
- "coordinates": [
- 72.837602,
- 18.924166,
- 42
]
}, - "units": {
- "TMIN": "C"
}, - "metadata": { },
- "created_at": "2024-12-25T07:55:29Z",
- "updated_at": "2024-12-25T07:55:29Z",
- "distance": null
}, - {
- "id": "eb53b387-d984-4071-93a2-58282eb18df0",
- "name": "Beverage opener",
- "kind": "weather_station",
- "location": {
- "type": "Point",
- "coordinates": [
- 72.837602,
- 18.924166,
- 42
]
}, - "units": {
- "TMIN": "C"
}, - "metadata": { },
- "created_at": "2024-12-25T07:55:29Z",
- "updated_at": "2024-12-25T07:55:29Z",
- "distance": null
}
]
Update sensor info
Update Sensor info. You must have an API token with iot:write
scope in order to use this.
Authorizations:
path Parameters
id required | string |
Request Body schema: application/json
name | string |
kind | string Value from |
location | Array of arrays array of lng, lat |
units | object units hash |
metadata | object metadata of the sensor |
Responses
Request samples
- Payload
{- "name": "farm abc - soil - installed",
- "kind": "weather_station",
- "location": [
- 12.21,
- 30.22,
- 100
], - "units": {
- "temperature": "C"
}, - "metadata": {
- "device_id": "AVC220011"
}
}
Response samples
- 200
{- "id": "325f14d4-293d-4861-9c9f-9c1ce21339e9",
- "name": "Expected name for sensor",
- "kind": "weather_station",
- "location": {
- "type": "Point",
- "coordinates": [
- 70.837602,
- 70.924166,
- 42
]
}, - "units": {
- "TMIN": "C"
}, - "metadata": { },
- "created_at": "2024-12-25T07:55:29Z",
- "updated_at": "2024-12-25T07:55:29Z",
- "organization": {
- "id": "c92d0221-4ee1-4901-965c-a5aedd6aaebd"
}
}
Response samples
- 200
{- "id": "cfc917fd-e195-410c-a565-5d8ae3dec727",
- "name": "Ceiling fan",
- "kind": "weather_station",
- "location": {
- "type": "Point",
- "coordinates": [
- 70.837602,
- 70.924166,
- 42
]
}, - "units": {
- "TMIN": "C"
}, - "metadata": { },
- "created_at": "2024-12-25T07:55:29Z",
- "updated_at": "2024-12-25T07:55:29Z",
- "organization": {
- "id": "e75e0dd0-ecc6-456b-b930-e7f276bbe95f"
}
}
List all the soil samples of a cropzone
List all the soil samples of a cropzone
Authorizations:
path Parameters
cropzone_id required | string Cropzone UUID |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
Responses
Response samples
- 200
[- {
- "id": "447771fd-fd26-4892-ac08-dc1e0661284c",
- "cropzone_id": "5c3b0ff7-b1dc-4ece-aa61-61356b98edc2",
- "cropzone": {
- "id": "5c3b0ff7-b1dc-4ece-aa61-61356b98edc2",
- "slug": "hidden-river-0"
}, - "location": [
- 98.666194,
- 16.566487
], - "results": {
- "latitude": 16.566487,
- "longitude": 98.666194,
- "analysis_date": "2022-12-19",
- "soil_texture": "loam",
- "elements": [
- {
- "unit": "pH Value",
- "label": "pH (water)",
- "value": 6.5,
- "codename": "A_PH_WA",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Organic matter",
- "value": 2.5,
- "codename": "Z_OM_OF",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Total Nitrogen",
- "value": 1.3,
- "codename": "A_N_RT",
- "judgement": null
}, - {
- "unit": "mg/kg",
- "label": "Phosphorus (M3)",
- "value": 24.8,
- "codename": "A_P_M3",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Phosphorus (M3)",
- "value": 24.8,
- "codename": "A_P_M3",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Potassium (exch.)",
- "value": 1.6,
- "codename": "A_K_CO",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Potassium (exch.)",
- "value": 62.6,
- "codename": "A_K_CO",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Calcium (exch.)",
- "value": 55.8,
- "codename": "A_CA_CO",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Calcium (exch.)",
- "value": 1118.2,
- "codename": "A_CA_CO",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Magnesium (exch.)",
- "value": 10.3,
- "codename": "A_MG_CO",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Magnesium (exch.)",
- "value": 125.2,
- "codename": "A_MG_CO",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Cation Exchange Capacity",
- "value": 78,
- "codename": "A_CEC_CO",
- "judgement": null
}, - {
- "unit": "cmol+/kg",
- "label": "Cation Exchange Capacity",
- "value": 7.8,
- "codename": "A_CEC_CO",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Total Aluminium",
- "value": 49.4,
- "codename": "A_AL_RT",
- "judgement": null
}, - {
- "unit": "mg/kg",
- "label": "Total Aluminium",
- "value": 49400,
- "codename": "A_AL_RT",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Total Iron",
- "value": 19.2,
- "codename": "A_FE_RT",
- "judgement": null
}, - {
- "unit": "mg/kg",
- "label": "Total Iron",
- "value": 19200,
- "codename": "A_FE_RT",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Clay",
- "value": 17,
- "codename": "A_CLAY_MI",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Organic Carbon",
- "value": 14.5,
- "codename": "A_C_OF",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Moisture",
- "value": 19.3,
- "codename": "A_H2O_2MM105",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Sand",
- "value": 46.8,
- "codename": "A_SAND_MI",
- "judgement": null
}
]
}, - "sampled_at": "2022-12-19T12:00:00Z",
- "created_at": "2024-12-25T07:55:29Z",
- "updated_at": "2024-12-25T07:55:29Z",
- "deprecated": [
- "cropzone_id"
]
}
]
List all the soil samples of an organization
List all the soil samples of an Organization
Authorizations:
path Parameters
organization_id required | string Organization UUID |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
Responses
Response samples
- 200
[- {
- "id": "fd356ca3-b134-4dce-9648-be75abaa478b",
- "cropzone_id": "5a24f2bf-a6e0-4faa-adb0-51d574eabf53",
- "cropzone": {
- "id": "5a24f2bf-a6e0-4faa-adb0-51d574eabf53",
- "slug": "thrumming-rain-85"
}, - "location": [
- 98.666194,
- 16.566487
], - "results": {
- "latitude": 16.566487,
- "longitude": 98.666194,
- "analysis_date": "2022-12-19",
- "soil_texture": "loam",
- "elements": [
- {
- "unit": "pH Value",
- "label": "pH (water)",
- "value": 6.5,
- "codename": "A_PH_WA",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Organic matter",
- "value": 2.5,
- "codename": "Z_OM_OF",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Total Nitrogen",
- "value": 1.3,
- "codename": "A_N_RT",
- "judgement": null
}, - {
- "unit": "mg/kg",
- "label": "Phosphorus (M3)",
- "value": 24.8,
- "codename": "A_P_M3",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Phosphorus (M3)",
- "value": 24.8,
- "codename": "A_P_M3",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Potassium (exch.)",
- "value": 1.6,
- "codename": "A_K_CO",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Potassium (exch.)",
- "value": 62.6,
- "codename": "A_K_CO",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Calcium (exch.)",
- "value": 55.8,
- "codename": "A_CA_CO",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Calcium (exch.)",
- "value": 1118.2,
- "codename": "A_CA_CO",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Magnesium (exch.)",
- "value": 10.3,
- "codename": "A_MG_CO",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Magnesium (exch.)",
- "value": 125.2,
- "codename": "A_MG_CO",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Cation Exchange Capacity",
- "value": 78,
- "codename": "A_CEC_CO",
- "judgement": null
}, - {
- "unit": "cmol+/kg",
- "label": "Cation Exchange Capacity",
- "value": 7.8,
- "codename": "A_CEC_CO",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Total Aluminium",
- "value": 49.4,
- "codename": "A_AL_RT",
- "judgement": null
}, - {
- "unit": "mg/kg",
- "label": "Total Aluminium",
- "value": 49400,
- "codename": "A_AL_RT",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Total Iron",
- "value": 19.2,
- "codename": "A_FE_RT",
- "judgement": null
}, - {
- "unit": "mg/kg",
- "label": "Total Iron",
- "value": 19200,
- "codename": "A_FE_RT",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Clay",
- "value": 17,
- "codename": "A_CLAY_MI",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Organic Carbon",
- "value": 14.5,
- "codename": "A_C_OF",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Moisture",
- "value": 19.3,
- "codename": "A_H2O_2MM105",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Sand",
- "value": 46.8,
- "codename": "A_SAND_MI",
- "judgement": null
}
]
}, - "sampled_at": "2022-12-19T12:00:00Z",
- "created_at": "2024-12-25T07:55:30Z",
- "updated_at": "2024-12-25T07:55:30Z",
- "deprecated": [
- "cropzone_id"
]
}
]
Get a soil sample result
Get a soil sample result.
Authorizations:
path Parameters
id required | string |
Responses
Response samples
- 200
- 401
- 404
{- "id": "03d45c58-6618-40dc-a568-30a9f5ae4a23",
- "cropzone_id": "02212841-de7d-4ed6-86a3-acb513498a4f",
- "cropzone": {
- "id": "02212841-de7d-4ed6-86a3-acb513498a4f",
- "slug": "black-wildflower-96"
}, - "location": [
- 98.666194,
- 16.566487
], - "results": {
- "latitude": 16.566487,
- "longitude": 98.666194,
- "analysis_date": "2022-12-19",
- "soil_texture": "loam",
- "elements": [
- {
- "unit": "pH Value",
- "label": "pH (water)",
- "value": 5.4,
- "codename": "A_PH_WA",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Organic matter",
- "value": 2.5,
- "codename": "Z_OM_OF",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Total Nitrogen",
- "value": 1.3,
- "codename": "A_N_RT",
- "judgement": null
}, - {
- "unit": "mg/kg",
- "label": "Phosphorus (M3)",
- "value": 50.4,
- "codename": "A_P_M3",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Phosphorus (M3)",
- "value": 50.4,
- "codename": "A_P_M3",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Potassium (exch.)",
- "value": 1.4,
- "codename": "A_K_CO",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Potassium (exch.)",
- "value": 54.7,
- "codename": "A_K_CO",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Calcium (exch.)",
- "value": 12.4,
- "codename": "A_CA_CO",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Calcium (exch.)",
- "value": 248.5,
- "codename": "A_CA_CO",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Magnesium (exch.)",
- "value": 2.4,
- "codename": "A_MG_CO",
- "judgement": null
}, - {
- "unit": "ppm",
- "label": "Magnesium (exch.)",
- "value": 29.2,
- "codename": "A_MG_CO",
- "judgement": null
}, - {
- "unit": "mmol+/kg",
- "label": "Cation Exchange Capacity",
- "value": 78,
- "codename": "A_CEC_CO",
- "judgement": null
}, - {
- "unit": "cmol+/kg",
- "label": "Cation Exchange Capacity",
- "value": 7.8,
- "codename": "A_CEC_CO",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Total Aluminium",
- "value": 49.4,
- "codename": "A_AL_RT",
- "judgement": null
}, - {
- "unit": "mg/kg",
- "label": "Total Aluminium",
- "value": 49400,
- "codename": "A_AL_RT",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Total Iron",
- "value": 19.2,
- "codename": "A_FE_RT",
- "judgement": null
}, - {
- "unit": "mg/kg",
- "label": "Total Iron",
- "value": 19200,
- "codename": "A_FE_RT",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Clay",
- "value": 17,
- "codename": "A_CLAY_MI",
- "judgement": null
}, - {
- "unit": "g/kg",
- "label": "Organic Carbon",
- "value": 14.5,
- "codename": "A_C_OF",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Moisture",
- "value": 19.3,
- "codename": "A_H2O_2MM105",
- "judgement": null
}, - {
- "unit": "%",
- "label": "Sand",
- "value": 46.8,
- "codename": "A_SAND_MI",
- "judgement": null
}
]
}, - "sampled_at": "2022-12-19T12:00:00Z",
- "created_at": "2024-12-25T07:55:30Z",
- "updated_at": "2024-12-25T07:55:30Z",
- "deprecated": [
- "cropzone_id"
]
}
Get a short lived access token from your refresh token
Get a short live access token (21600 seconds) from your refresh token. At the moment grant_type MUST be client_credentials.
Authorizations:
Request Body schema: application/json
grant_type required | string |
client_id required | string Your token client_id |
client_secret required | string Your client secret (refresh token) |
scopes | Array of strings |
Responses
Request samples
- Payload
{- "grant_type": "client_credentials",
- "client_id": "42885717-bee2-423e-8093-71538575a42e",
- "client_secret": "2nx4mA54RoQEh9h1SrTUpBgfjR8pXTXYvvFV",
- "scopes": [
- "tokens:write"
]
}
Response samples
- 200
- 401
{- "access_token": "6axMTrTu3pbbzWvHTBtp1Tr9Mi4JaJxGBYHV",
- "token_type": "Bearer",
- "expires_in": 21600,
- "created_at": 1735113331
}
List all the Transactions of a cropzone
List all the transactions (Traceability, movements of goods) in a cropzone.
Authorizations:
path Parameters
cropzone_id required | string Cropzone UUID |
query Parameters
page | integer Default: 1 Page number |
Responses
Response samples
- 200
[- {
- "id": "15ae7ebc-0fd2-4129-9aee-17bb9b53e952",
- "cropzone_id": "705b5e85-12f8-4150-8fa1-97e94cce3beb",
- "source": null,
- "destination": {
- "id": "117283ce-0206-41c8-b39d-c161d345910f",
- "name": "Gulgowski, Schuster and Buckridge",
- "description": "Example of description of goods",
- "phone": "+819012121212",
- "city": "Bangkok",
- "address": "7, Prampong Road",
- "lnglat": {
- "type": "Point",
- "coordinates": [
- 100.47,
- 13.7563
]
}, - "created_at": "2024-12-25T07:55:31Z",
- "updated_at": "2024-12-25T07:55:31Z"
}, - "date": "2024-12-25",
- "datetime": "2024-12-25T07:55:31Z",
- "qty_exchanged": "87.0",
- "qty_exchanged_unit": "t",
- "extra": {
- "crop_quality": null,
- "crop_quality_unit": "",
- "income": null,
- "income_unit": ""
}
}
]
Create a new Transaction
Create a new Transaction.
Authorizations:
path Parameters
cropzone_id required | string Cropzone UUID |
Request Body schema: application/json
source_id | string UUID of source Place object. Can be nil (farm will be considered source) |
destination_id required | string UUID of a Place object |
datetime required | string Date and time of exchange in iso8601 |
qty_exchanged required | number Amount exchanged, in tons |
object |
Responses
Request samples
- Payload
{- "source_id": "0e3f4387-25e2-4234-aaab-75bde6847c0c",
- "destination_id": "0e3f4387-25e2-4234-aaab-75bde6847c0c",
- "datetime": "2022-07-11T18:04:18+09:00",
- "qty_exchanged": 42,
- "extra": {
- "income": 0,
- "income_unit": "string",
- "crop_quality": "string",
- "crop_quality_unit": "string"
}
}
Response samples
- 200
{- "id": "bc77139f-bc6a-4d86-bb5f-3e6fab2c8f9a",
- "cropzone_id": "86eec109-a8d9-4253-8ad4-beb190d8efab",
- "source": null,
- "destination": {
- "id": "2d80ea9b-068e-4da1-952e-80c8ef0fd09c",
- "name": "Schmitt-Yost",
- "description": "Example of description of goods",
- "phone": "+819012121212",
- "city": "Bangkok",
- "address": "7, Prampong Road",
- "lnglat": {
- "type": "Point",
- "coordinates": [
- 100.47,
- 13.7563
]
}, - "created_at": "2024-12-25T07:55:31Z",
- "updated_at": "2024-12-25T07:55:31Z"
}, - "date": "2021-01-01",
- "datetime": "2021-01-01T00:00:00Z",
- "qty_exchanged": "42.0",
- "qty_exchanged_unit": "t",
- "extra": {
- "crop_quality": 50,
- "crop_quality_unit": "STARCH_CONTENT_PERC",
- "income": 1000,
- "income_unit": "satang"
}
}
Updates a Transaction information
Updates a Transaction information
Authorizations:
path Parameters
id required | string Tx UUID |
Request Body schema: application/json
source_id | string UUID of source Place object. Can be nil (farm will be considered source) |
destination_id | string UUID of a Place object |
datetime | string Date and time of exchange in iso8601 |
qty_exchanged | number Amount exchanged, in tons |
object |
Responses
Request samples
- Payload
{- "source_id": "0e3f4387-25e2-4234-aaab-75bde6847c0c",
- "destination_id": "0e3f4387-25e2-4234-aaab-75bde6847c0c",
- "datetime": "2022-07-11T18:04:18+09:00",
- "qty_exchanged": 42,
- "extra": {
- "income": 0,
- "income_unit": "string",
- "crop_quality": "string",
- "crop_quality_unit": "string"
}
}
Response samples
- 200
{- "id": "45b20db6-3578-4134-8d24-b1e9655d574e",
- "cropzone_id": "85f093c1-cba6-4a5e-9d77-9a6e8402f5f2",
- "source": null,
- "destination": {
- "id": "3a09cbd3-1ff4-4c9d-bdbb-ec23511d2d1a",
- "name": "Bartell-Waelchi",
- "description": "Example of description of goods",
- "phone": "+819012121212",
- "city": "Bangkok",
- "address": "7, Prampong Road",
- "lnglat": {
- "type": "Point",
- "coordinates": [
- 100.47,
- 13.7563
]
}, - "created_at": "2024-12-25T07:55:31Z",
- "updated_at": "2024-12-25T07:55:31Z"
}, - "date": "2021-01-02",
- "datetime": "2021-01-02T00:00:00Z",
- "qty_exchanged": "12.0",
- "qty_exchanged_unit": "t",
- "extra": {
- "crop_quality": 500,
- "crop_quality_unit": "STARCH_CONTENT_PERC",
- "income": 1500,
- "income_unit": "satang"
}
}
Authenticate user login
Authenticates a user. You must have an API token with the users:read
scope. You can also provide a firebase JWT token.
Authorizations:
Responses
Response samples
- 200
{- "id": "fedb0e23-58c9-4b56-bc40-b84c60b7ec72",
- "name": "Moore and Sons",
- "phone": "+9942581957895",
- "email": "cris_wilkinson@labadie-waelchi.co",
- "lang": "en",
- "area_unit": "rai",
- "weight_unit": "ton",
- "soil_units": { },
- "slug": "thrumming-sea-1",
- "created_at": "2024-12-25T07:55:32Z",
- "updated_at": "2024-12-25T07:55:32Z",
- "token": {
- "id": "a5109f51-e916-4a38-9957-38821f6de0bd",
- "value": "wiigydhzU7m3cw5WSSeJwRpuEDHP5Uug6ekR",
- "expires_at": 1735134932
}
}
Update user info whose token is provided in the request
Update User info. You must have an API token with the users:admin
or users:write
scope in order to use this.
Authorizations:
Request Body schema: application/json
name | string |
string | |
phone | string |
lang | string Allowed values are [en, th, vi, jp], defaults to en |
area_unit | string Allowed values are [m2, rai, ha], defaults to m2 |
soil_units | object Mapping of soil type (AgroCare codename) to units. |
fcm_registration_id | string Registration id of the client device which will be used by Firebase cloud messaging to send notifications |
Responses
Request samples
- Payload
{- "name": "John Doe",
- "email": "contact@me.com",
- "phone": "9822341234",
- "lang": "en",
- "area_unit": "rai",
- "soil_units": {
- "A_AL_RT": "g/kg"
}, - "fcm_registration_id": "dAlDYuaPXes:APA91bFEipx"
}
Response samples
- 200
- 400
{- "id": "71c28d98-fe4f-4b9b-8f16-c7b80a7b31f5",
- "name": "edited name",
- "phone": "+451004037123",
- "email": "twyla.greenfelder@metz-wisozk.info",
- "lang": "th",
- "area_unit": "ha",
- "weight_unit": "ton",
- "soil_units": {
- "A_AL_RT": "g/kg"
}, - "slug": "still-field-75",
- "created_at": "2024-12-25T07:55:33Z",
- "updated_at": "2024-12-25T07:55:33Z"
}
Response samples
- 200
{- "id": "980a0369-7cfe-4be2-9511-f2809afdcbc3",
- "name": "Mills, Kirlin and Cummerata",
- "phone": "+24719308657029",
- "email": "jasper@haley-padberg.name",
- "lang": "en",
- "area_unit": "rai",
- "weight_unit": "ton",
- "soil_units": { },
- "slug": "nameless-frog-83",
- "created_at": "2024-12-25T07:55:33Z",
- "updated_at": "2024-12-25T07:55:33Z"
}
List available Ndvi for a cropzone
List cropzone Ndvis. You must have an API token with the vi:read
scope
Authorizations:
path Parameters
cropzone_id required | string Default: "341ddacd-2ad5-40d2-9ffe-035b0a038840" Cropzone Id |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
from | string <datetime> From date in ISO8601 |
to | string <datetime> To date in ISO8601 |
source | string Source of image (sentinel_2A or PLANET) |
Request Body schema: application/json
Responses
Request samples
- Payload
0
Response samples
- 200
[- {
- "id": "c223679b-7037-4fcc-91d4-b4cfb58defec",
- "cropzone_id": "0296a795-d163-4fa2-81e6-39b484a9c77f",
- "type": "Ndvi",
- "date": "2024-12-25T00:00:00Z",
- "mean": null,
- "cloudy": false,
- "extra_info": { },
- "thresholds": { },
- "created_at": "2024-12-25T07:55:00Z",
- "updated_at": "2024-12-25T07:55:00Z"
}
]
List available Ndmi for a cropzone
List cropzone Ndmis. You must have an API token with the vi:read
scope
Authorizations:
path Parameters
cropzone_id required | string Default: "8605761e-5701-492f-8ccc-6c8a4b4f19a7" Cropzone Id |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
from | string <datetime> From date in ISO8601 |
to | string <datetime> To date in ISO8601 |
source | string Source of image (sentinel_2A or PLANET) |
Request Body schema: application/json
Responses
Request samples
- Payload
0
Response samples
- 200
[- {
- "id": "2ed40e71-802e-4543-8277-7c9b8b71500c",
- "cropzone_id": "7df6b76d-9220-44e1-a498-5ae9f6b9ce7e",
- "type": "Ndmi",
- "date": "2024-12-25T00:00:00Z",
- "mean": null,
- "cloudy": false,
- "extra_info": { },
- "thresholds": { },
- "created_at": "2024-12-25T07:55:00Z",
- "updated_at": "2024-12-25T07:55:00Z"
}
]
List available Evi for a cropzone
List cropzone Evis. You must have an API token with the vi:read
scope
Authorizations:
path Parameters
cropzone_id required | string Default: "c36ace92-4746-4387-b105-5c0b13895c8f" Cropzone Id |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
from | string <datetime> From date in ISO8601 |
to | string <datetime> To date in ISO8601 |
source | string Source of image (sentinel_2A or PLANET) |
Request Body schema: application/json
Responses
Request samples
- Payload
0
Response samples
- 200
[- {
- "id": "871bb78f-4faf-48ee-bc0a-06160af37439",
- "cropzone_id": "8e5f644c-0112-4fcb-b92b-e994f6e0af5a",
- "type": "Evi",
- "date": "2024-12-25T00:00:00Z",
- "mean": null,
- "cloudy": false,
- "extra_info": { },
- "thresholds": { },
- "created_at": "2024-12-25T07:55:00Z",
- "updated_at": "2024-12-25T07:55:00Z"
}
]
List available S2multi for a cropzone
List cropzone S2multis. You must have an API token with the vi:read
scope
Authorizations:
path Parameters
cropzone_id required | string Default: "e3b4c2b4-30ed-4568-b980-9bc47e19abb7" Cropzone Id |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
from | string <datetime> From date in ISO8601 |
to | string <datetime> To date in ISO8601 |
source | string Source of image (sentinel_2A or PLANET) |
Request Body schema: application/json
Responses
Request samples
- Payload
0
Response samples
- 200
[- {
- "id": "e0d7518b-c506-43e1-b971-45d18093ffee",
- "cropzone_id": "69cf9538-071c-4be6-b7c8-4ef465307925",
- "type": "S2multi",
- "date": "2024-12-25T00:00:00Z",
- "mean": null,
- "cloudy": false,
- "extra_info": {
- "crs": "EPSG:3857",
- "timestamp": 1735084800,
- "maskedPercentage": 0,
- "__MASKED_PERCENTAGE": 0,
- "__SHRINKED_POLYGON_EVI_MEAN": 0.1265279859356383,
- "__SHRINKED_POLYGON_NDMI_MEAN": -0.1555774823631529,
- "__SHRINKED_POLYGON_NDVI_MEAN": 0.2150538187495313,
- "__SHRINKED_POLYGON_SAVI_MEAN": 0.1366032126599726,
- "__SHRINKED_POLYGON_EVI_STDDEV": 0.1344812094458128,
- "__SHRINKED_POLYGON_NDMI_STDDEV": 0.1238814081727995,
- "__SHRINKED_POLYGON_NDVI_STDDEV": 0.17840937217508,
- "__SHRINKED_POLYGON_SAVI_STDDEV": 0.1272398647534641
}, - "thresholds": { },
- "created_at": "2024-12-25T07:55:01Z",
- "updated_at": "2024-12-25T07:55:01Z"
}
]
Weather measurements at cropzone
An endpoint to get weather measurements at the selected cropzone location.
Authorizations:
path Parameters
cropzone_id required | string |
query Parameters
page | integer Default: 1 Page number |
items | integer Default: 50 Items per page |
filter[from] required | string or null <datetime> From date in iso8601 |
filter[to] required | string or null <datetime> To date in iso8601 |
Responses
Response samples
- 200
"[{\"read_at"