Skip to main content
GET
/
api
/
forest
/
biological-assets
List Biological Assets
curl --request GET \
  --url https://api.example.com/api/forest/biological-assets
{
  "items": [
    {
      "id": "<string>",
      "level4Id": "<string>",
      "biologicalAssetKey": "<string>",
      "accountingKey": "<string>",
      "establishmentDate": "<string>",
      "plantingYear": 123,
      "geneticMaterialCode": "<string>",
      "geneticMaterialName": "<string>",
      "assetType": "<string>",
      "managementSchemeCode": "<string>",
      "managementSchemeName": "<string>",
      "inventoryCode": "<string>",
      "inventoryType": "<string>",
      "inventoryDate": "<string>",
      "inventoryAgeYears": 123,
      "level5UnitCount": 123,
      "spacingCode": "<string>",
      "spacingDescription": "<string>",
      "spacingBetweenRowsM": 123,
      "spacingBetweenTreesM": 123,
      "treeDensityPerHa": 123,
      "survivalRate": 123,
      "dominantHeightM": 123,
      "meanHeightM": 123,
      "quadraticDiameterM": 123,
      "basalAreaM2": 123,
      "unitVolumeM3NoBarkPerHa": 123,
      "unitVolumeM3WithBarkPerHa": 123,
      "totalVolumeM3NoBark": 123,
      "totalVolumeM3WithBark": 123,
      "adjustedVolumeM3NoBarkPerHa": 123,
      "adjustedVolumeM3WithBarkPerHa": 123,
      "imaClassCode": "<string>",
      "imaClassName": "<string>",
      "actualCostUsd": 123,
      "isActive": true,
      "createdAt": {},
      "updatedAt": {},
      "level4": {
        "id": "<string>",
        "code": "<string>",
        "name": "<string>"
      }
    }
  ],
  "pagination": {
    "total": 123,
    "page": 123,
    "limit": 123,
    "totalPages": 123
  }
}
Retrieves a paginated list of biological assets (Level 6) associated with Level 4 patrimony units. Results can be filtered by Level 4 unit and searched by biological key, accounting key, genetic material name, or inventory code.

Authentication

Requires authentication with valid session token. Users must have forest-biological-asset READ or CREATE/UPDATE/DELETE permissions. SUPER_ADMIN role has full access.

Query Parameters

level4Id
string
Filter by Level 4 patrimony unit ID (UUID format)
Search term to filter by biological asset key, accounting key, genetic material name, or inventory code (case-insensitive)
sortBy
string
default:"biologicalAssetKey"
Field to sort by. Options: biologicalAssetKey, accountingKey, assetType, plantingYear, inventoryCode, isActive, createdAt
sortOrder
string
default:"asc"
Sort direction. Options: asc, desc
page
number
default:"1"
Page number for pagination (minimum: 1)
limit
number
default:"25"
Number of items per page (minimum: 1, maximum: 100)

Response

items
array
Array of biological asset objects
pagination
object
Pagination metadata

Error Responses

  • 400: Invalid parameters
  • 401: Unauthorized (not authenticated)
  • 403: Forbidden (user lacks required permissions or organization)

Example Request

curl -X GET "https://api.example.com/api/forest/biological-assets?level4Id=123e4567-e89b-12d3-a456-426614174000&search=pine&page=1&limit=25" \
  -H "Authorization: Bearer YOUR_TOKEN"

Example Response

{
  "items": [
    {
      "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "level4Id": "123e4567-e89b-12d3-a456-426614174000",
      "biologicalAssetKey": "BA-PINE-001",
      "accountingKey": "ACC-001",
      "establishmentDate": "2020-03-15T00:00:00Z",
      "plantingYear": 2020,
      "geneticMaterialCode": "GM-001",
      "geneticMaterialName": "Pinus caribaea",
      "assetType": "COMERCIAL",
      "inventoryCode": "INV-2023-001",
      "inventoryType": "Full Inventory",
      "inventoryDate": "2023-06-01T00:00:00Z",
      "inventoryAgeYears": 3,
      "treeDensityPerHa": 1111,
      "survivalRate": 95.5,
      "dominantHeightM": 12.5,
      "meanHeightM": 11.2,
      "actualCostUsd": 15000.00,
      "isActive": true,
      "createdAt": "2023-01-10T14:30:00Z",
      "updatedAt": "2023-06-15T09:20:00Z",
      "level4": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "code": "L4-001",
        "name": "Rodal Norte"
      }
    }
  ],
  "pagination": {
    "total": 48,
    "page": 1,
    "limit": 25,
    "totalPages": 2
  }
}

Build docs developers (and LLMs) love