API Reference
Adds a datapoint to an event. An event can be associated with multiple datapoints.
cURL
curl --request POST \ --url https://app.gomangrove.com/api/v1/projects/{project_id}/events/{event_id}/data_points \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "data_point": { "slug": "<string>", "value": "<string>" } } '
{ "id": "in_n6MQpY00dN6bMaKi", "slug": "total-ash-delivered-wet-us-ton", "data_point_type": "Total Ash Delivered (wet mass) U.S. ton", "value": 290.8, "unit": "U.S. ton", "status": "complete" }
Unique ID of event in the evt_XXXX syntax. For example: evt_DLnYvzbjSujNAvXE
evt_XXXX
evt_DLnYvzbjSujNAvXE
Show child attributes
Value must match the datatype of this DataPointType
200
"in_n6MQpY00dN6bMaKi"
"total-ash-delivered-wet-us-ton"
"Total Ash Delivered (wet mass) U.S. ton"
290.8
"U.S. ton"
"complete"