curl --request POST \
--url https://api.example.com/api/forest/biological-assets \
--header 'Content-Type: application/json' \
--data '
{
"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
}
'{
"id": "<string>",
"level4": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"createdAt": {},
"updatedAt": {}
}Create a new biological asset record
curl --request POST \
--url https://api.example.com/api/forest/biological-assets \
--header 'Content-Type: application/json' \
--data '
{
"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
}
'{
"id": "<string>",
"level4": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"createdAt": {},
"updatedAt": {}
}forest-biological-asset CREATE permission. SUPER_ADMIN role has full access.
COMERCIAL, INVESTIGACIONid and timestamps. Status code: 201 Created
curl -X POST "https://api.example.com/api/forest/biological-assets" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"level4Id": "123e4567-e89b-12d3-a456-426614174000",
"biologicalAssetKey": "BA-PINE-002",
"accountingKey": "ACC-002",
"establishmentDate": "2021-04-20",
"plantingYear": 2021,
"geneticMaterialCode": "GM-002",
"geneticMaterialName": "Pinus oocarpa",
"assetType": "COMERCIAL",
"treeDensityPerHa": 1250,
"survivalRate": 98.0,
"actualCostUsd": 18500.00,
"isActive": true
}'
{
"id": "a8b7c9d0-1234-5678-9abc-def012345678",
"level4Id": "123e4567-e89b-12d3-a456-426614174000",
"biologicalAssetKey": "BA-PINE-002",
"accountingKey": "ACC-002",
"establishmentDate": "2021-04-20T00:00:00Z",
"plantingYear": 2021,
"geneticMaterialCode": "GM-002",
"geneticMaterialName": "Pinus oocarpa",
"assetType": "COMERCIAL",
"managementSchemeCode": null,
"managementSchemeName": null,
"inventoryCode": null,
"inventoryType": null,
"inventoryDate": null,
"inventoryAgeYears": null,
"level5UnitCount": null,
"spacingCode": null,
"spacingDescription": null,
"spacingBetweenRowsM": null,
"spacingBetweenTreesM": null,
"treeDensityPerHa": "1250",
"survivalRate": "98.00",
"dominantHeightM": null,
"meanHeightM": null,
"quadraticDiameterM": null,
"basalAreaM2": null,
"unitVolumeM3NoBarkPerHa": null,
"unitVolumeM3WithBarkPerHa": null,
"totalVolumeM3NoBark": null,
"totalVolumeM3WithBark": null,
"adjustedVolumeM3NoBarkPerHa": null,
"adjustedVolumeM3WithBarkPerHa": null,
"imaClassCode": null,
"imaClassName": null,
"actualCostUsd": "18500.00",
"isActive": true,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"level4": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"code": "L4-001",
"name": "Rodal Norte"
}
}