Skip to main content
PATCH
/
projects
/
{project_id}
/
events
/
{event_id}
/
data_points
/
{data_point_id}
Update a datapoint
curl --request PATCH \
  --url https://app.gomangrove.com/api/v1/projects/{project_id}/events/{event_id}/data_points/{data_point_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data_point": {
    "slug": "total-ash-delivered-wet-us-ton",
    "value": 291.1
  }
}
'
{
  "id": "in_kiIuaGIUqRxWUmTY",
  "slug": "total-ash-delivered-wet-us-ton",
  "data_point_type": "Total Ash Delivered (wet mass) U.S. ton",
  "value": 291.1,
  "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

data_point_id
string
required

Unique ID of datapoint in the in_XXXX syntax. For example: in_kiIuaGIUqRxWUmTY

Body

application/json
data_point
object

Response

200

id
string
Example:

"in_kiIuaGIUqRxWUmTY"

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:

291.1

unit
string
Example:

"U.S. ton"

status
string
Example:

"complete"