Skip to content

create_custom_exchange

Create an exchange linking to custom activities within your project.

Parameters

Parameter Type Required Description
activity_id string Yes Parent activity UUID
name string Yes Exchange name (1-200 chars)
amount float Yes Quantity (+consumed, -credits)
unit string Yes Exchange unit
exchange_type string Yes "production", "technosphere", "biosphere"
input_activity_code string No Link to custom activity
input_database string No Set to "custom" for custom links
input_biosphere_code string No Link to biosphere flow

Exchange Types

  • production: Reference product output (amount = 1.0)
  • technosphere: Material/energy inputs (amount < 0)
  • biosphere: Environmental flows

Example

Prompt: Create reference product exchange for activity xyz789: 1.0 unit of "Solar Panel"

Critical

For custom-to-custom links: Set input_database="custom"