Skip to main content
POST
/
projects
/
{project_id}
/
event_types
Create an event type
curl --request POST \
  --url https://app.gomangrove.com/api/v1/projects/{project_id}/event_types \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_type": {
    "name": "Biochar Production",
    "slug": "biochar-production",
    "description": "Event for tracking biochar production",
    "reusable_in_batches": false,
    "expected_locations": "one",
    "requires_tracking_id": true
  }
}
'
{
  "id": 3,
  "slug": "biochar-production",
  "name": "Biochar Production",
  "created_at": "2025-01-15T10:00:00.000Z",
  "updated_at": "2025-01-15T10:00:00.000Z",
  "data_point_types": [],
  "requires_locations": true
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
string
required

Body

application/json
event_type
object

Response

201

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