Skip to main content
POST
/
projects
/
{project_id}
/
events
/
{event_id}
/
data_points
Create and add a datapoint to an event
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"
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
string
required
event_id
string
required

Unique ID of event in the evt_XXXX syntax. For example: evt_DLnYvzbjSujNAvXE

Body

application/json
data_point
object

Response

200

id
string
Example:

"in_n6MQpY00dN6bMaKi"

slug
string
Example:

"total-ash-delivered-wet-us-ton"

data_point_type
string
Example:

"Total Ash Delivered (wet mass) U.S. ton"

value
number
default:0
Example:

290.8

unit
string
Example:

"U.S. ton"

status
string
Example:

"complete"