create_record
Creates farmOS records such as assets, logs, plans, quantities, taxonomy terms, or organizations from supplied attributes and relationships. Search first because names are not unique; writes must be enabled.
Instructions
Create any record. Prefer create_log for logs with quantities. Requires writes to be enabled. Names are not unique in farmOS, so search first to avoid duplicates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundle | Yes | Bundle, e.g. 'land', 'plant', 'activity', 'plant_type' | |
| attributes | No | Field values, e.g. {'name': 'North Field', 'land_type': 'field'} | |
| entity_type | Yes | One of: asset, log, plan, quantity, taxonomy_term, organization | |
| relationships | No | Relationship name -> {'type': 'asset--land', 'id': '<uuid>'} or a list of those. E.g. {'parent': [{'type': 'asset--land', 'id': '...'}]} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||