Create a new activity definition template:
Required Parameters:
name: Human-readable name for the definitionuiCode: React component body code for the input form (do NOT include
function ActivityUI(...) { or the closing brace — the system wraps it)calcCode: JavaScript function body code for the calculation (do NOT include
async function calculate(inputValues) { or the closing brace — the system wraps it using inputs)inputs: Array of input field definitionsOptional Parameters:
description: Detailed description of the activity typeisCommon: Make available to all organizations (requires elevated permissions)Activity definitions serve as templates for creating activities with consistent calculation logic and user interfaces.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful response