Skip to main content
PATCH
/
projects
/
{project_id}
/
event_types
/
{event_type_id}
Update an event type
curl --request PATCH \
  --url https://app.gomangrove.com/api/v1/projects/{project_id}/event_types/{event_type_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_type": {
    "name": "Updated Biochar Production",
    "description": "Updated description"
  }
}
'
{
  "id": 1,
  "slug": "biochar-production",
  "name": "Updated Biochar Production",
  "created_at": "2025-01-15T10:00:00.000Z",
  "updated_at": "2025-01-15T12:00:00.000Z",
  "data_point_types": [],
  "requires_locations": true
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
string
required
event_type_id
integer
required

Event type ID

Body

application/json
event_type
object

Response

200

id
integer
slug
string
name
string
created_at
string<date-time>
updated_at
string<date-time>
data_point_types
object[]
requires_locations
boolean