Skip to main content
GET
Get Project Supported Activity Type

Authorizations

Authorization
string
header
required

A JWT Bearer token header for authentication and authorization, in the format Authorization: Bearer <token>

Headers

x-client-secret
string
required

A secret token identifying the client connecting to the API

Example:

"Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP"

Path Parameters

project_id
string
required
Required string length: 20 - 37
Examples:

"prj_1CTWZQGKE1S0VAXA"

"prj_1E0QTWB22SBX34D1"

activity_type
string
required

The type of the activity. Use GET /projects/{project_id}/supported_activity_types to discover which types are valid for your project.

Example:

"reforestation_field_plot_measurement"

Query Parameters

view
enum<string>
default:full

basic returns each type's key, name and description. full adds the rest of the definition, such as its metadata schema and links.

Available options:
basic,
full

Response

Successful Response

An activity type in the full view.

activity_type
string
required

The type of the activity. Use GET /projects/{project_id}/supported_activity_types to discover which types are valid for your project.

Example:

"reforestation_field_plot_measurement"

children
ActivityTypeReference · object[]
required

Activity types that can belong to an activity of this type.

description
string
required
Example:

"A measurement of the trees in a field plot."

following_activities
ActivityTypeReference · object[]
required

Activity types that follow an activity of this type.

happens_at_site
SiteTypeReference · object | null
required

The site type where an activity of this type happens. Null means activities of this type don't happen at a site.

measurements
MeasurementRequirement · object[]
required

Measurements that activities of this type can record.

metadata_schema
Metadata Schema · object
required

JSON Schema for the metadata object of activities of this type.

Example:
name
string
required
Example:

"Field plot measurement"

output_materials
MaterialTypeReference · object[]
required

Material types that an activity of this type produces.

parents
ActivityTypeReference · object[]
required

Activity types that an activity of this type can belong to.

preceding_activities
ActivityTypeReference · object[]
required

Activity types that an activity of this type follows.

referenced_materials
MaterialTypeReference · object[]
required

Material types that an activity of this type uses.

Types that GET /projects/{project_id}/activities accepts in its related_site_type, related_activity_type and related_material_type filters when it lists activities of this type.

time_schema
Time Schema · object
required

JSON Schema for the time field of activities of this type.

Example: