Getting Started
Production Data
- Projects
- Locations
- Events
- Datapoints
- Evidence
Credit Inventory Management
- Orders
Account Admin
- Account
Events
Create an event
Events
Create an event
Creates events to capture ongoing operational data within a specific project boundary.
POST
/
projects
/
{project_id}
/
events
curl --request POST \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/events \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"event": {
"event_type": "biochar-delivery",
"start_time": "2024-06-04T00:00:00.000Z",
"end_time": "2024-06-04T23:59:59.000Z",
"tracking_id": "MG1003",
"notes": "A note about this event",
"locations": [
{
"id": "loc_8XF1QtGs79oX9A6k"
},
{
"id": "loc_7nxaDUf65c36v6mz"
}
],
"data_points": [
{
"slug": "total-ash-delivered-wet-us-ton",
"value": 290.6
},
{
"slug": "distance-biochar-transported",
"value": 15.3
},
{
"slug": "biochar-end-use",
"value": "soil amendment"
}
]
}
}'
{
"id": "evt_DLnYvzbjSujNAvXE",
"slug": "biochar-delivery",
"event_type": "Biochar Delivery",
"tracking_id": "MG1003",
"start_time": "2024-06-04T00:00:00.000Z",
"end_time": "2024-06-04T23:59:59.000Z",
"data_points": [
{
"id": "in_JuGzRS08MbVSEkCj",
"slug": "total-ash-delivered-wet-us-ton",
"data_point_type": "Total Ash Delivered (wet mass) U.S. ton",
"value": 290.6,
"unit": "U.S. ton",
"status": "complete"
},
{
"id": "in_c3krFTxCxJSQR5Rc",
"slug": "distance-biochar-transported",
"data_point_type": "Biochar distance transported",
"value": 15.3,
"unit": "mile",
"status": "complete"
},
{
"id": "in_AIKqFEtr5OpAqram",
"slug": "biochar-end-use",
"data_point_type": "Biochar end use",
"value": "soil amendment",
"unit": null,
"status": "complete"
}
],
"locations": [
{
"id": "loc_8XF1QtGs79oX9A6k",
"lat": "40.4773493",
"long": "-124.1226179",
"name": "Production Facility",
"address": {
"name": "Production Facility",
"street_address_1": null,
"street_address_2": null,
"city": null,
"state": null,
"postal_code": null,
"country": "CA"
}
},
{
"id": "loc_7nxaDUf65c36v6mz",
"lat": "41.2733453",
"long": "-122.2246676",
"name": "Customer Location",
"address": {
"name": "Customer Location",
"street_address_1": null,
"street_address_2": null,
"city": null,
"state": null,
"postal_code": null,
"country": "CA"
}
}
],
"evidences": []
}
Authorizations
Path Parameters
Body
application/json
Response
200
application/json
200
The response is of type any
.
curl --request POST \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/events \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"event": {
"event_type": "biochar-delivery",
"start_time": "2024-06-04T00:00:00.000Z",
"end_time": "2024-06-04T23:59:59.000Z",
"tracking_id": "MG1003",
"notes": "A note about this event",
"locations": [
{
"id": "loc_8XF1QtGs79oX9A6k"
},
{
"id": "loc_7nxaDUf65c36v6mz"
}
],
"data_points": [
{
"slug": "total-ash-delivered-wet-us-ton",
"value": 290.6
},
{
"slug": "distance-biochar-transported",
"value": 15.3
},
{
"slug": "biochar-end-use",
"value": "soil amendment"
}
]
}
}'
{
"id": "evt_DLnYvzbjSujNAvXE",
"slug": "biochar-delivery",
"event_type": "Biochar Delivery",
"tracking_id": "MG1003",
"start_time": "2024-06-04T00:00:00.000Z",
"end_time": "2024-06-04T23:59:59.000Z",
"data_points": [
{
"id": "in_JuGzRS08MbVSEkCj",
"slug": "total-ash-delivered-wet-us-ton",
"data_point_type": "Total Ash Delivered (wet mass) U.S. ton",
"value": 290.6,
"unit": "U.S. ton",
"status": "complete"
},
{
"id": "in_c3krFTxCxJSQR5Rc",
"slug": "distance-biochar-transported",
"data_point_type": "Biochar distance transported",
"value": 15.3,
"unit": "mile",
"status": "complete"
},
{
"id": "in_AIKqFEtr5OpAqram",
"slug": "biochar-end-use",
"data_point_type": "Biochar end use",
"value": "soil amendment",
"unit": null,
"status": "complete"
}
],
"locations": [
{
"id": "loc_8XF1QtGs79oX9A6k",
"lat": "40.4773493",
"long": "-124.1226179",
"name": "Production Facility",
"address": {
"name": "Production Facility",
"street_address_1": null,
"street_address_2": null,
"city": null,
"state": null,
"postal_code": null,
"country": "CA"
}
},
{
"id": "loc_7nxaDUf65c36v6mz",
"lat": "41.2733453",
"long": "-122.2246676",
"name": "Customer Location",
"address": {
"name": "Customer Location",
"street_address_1": null,
"street_address_2": null,
"city": null,
"state": null,
"postal_code": null,
"country": "CA"
}
}
],
"evidences": []
}