Create a new activity with automatic calculation:
Required Parameters:
formId: Form where the activity belongskey: Activity definition key (e.g., “electricity_consumption”)siteId: Site where the activity occursyear: Activity yearperiodUnit: Time period (e.g., 1 for January, 4 for Q4)input: Input data for calculation (key-value pairs)The system automatically calculates the activity value using the provided inputs and the activity definition’s calculation logic.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.