curl -X GET "https://api.confor.app/api/forest/patrimony?level=4&parentId=660e8400-e29b-41d4-a716-446655440001" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"items": [
{
"id": "770e8400-e29b-41d4-a716-446655440002",
"level3Id": "660e8400-e29b-41d4-a716-446655440001",
"code": "RODAL-01",
"name": "Rodal Pino Caribe",
"type": "RODAL",
"fscCertificateStatus": "SI",
"currentLandUseName": "Plantación comercial",
"previousLandUseName": "Pastizal",
"landUseChangeDate": "2020-03-15T00:00:00Z",
"totalAreaHa": 120.75,
"plantableAreaHa": 115.50,
"rotationPhase": "Fase de crecimiento",
"previousUse": "Ganadería extensiva",
"centroidLatitude": 10.525,
"centroidLongitude": -66.875,
"lastInfoDate": "2024-01-10T00:00:00Z",
"isActive": true,
"createdAt": "2024-01-15T10:40:00Z",
"updatedAt": "2024-01-15T10:40:00Z",
"level3": {
"id": "660e8400-e29b-41d4-a716-446655440001",
"code": "COMP-A",
"name": "Compartimiento Norte"
},
"_count": {
"level6Assets": 3
}
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 25,
"totalPages": 1
}
}
curl -X GET "https://api.confor.app/api/forest/patrimony?level=4&parentId=660e8400-e29b-41d4-a716-446655440001" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"items": [
{
"id": "770e8400-e29b-41d4-a716-446655440002",
"level3Id": "660e8400-e29b-41d4-a716-446655440001",
"code": "RODAL-01",
"name": "Rodal Pino Caribe",
"type": "RODAL",
"fscCertificateStatus": "SI",
"currentLandUseName": "Plantación comercial",
"previousLandUseName": "Pastizal",
"landUseChangeDate": "2020-03-15T00:00:00Z",
"totalAreaHa": 120.75,
"plantableAreaHa": 115.50,
"rotationPhase": "Fase de crecimiento",
"previousUse": "Ganadería extensiva",
"centroidLatitude": 10.525,
"centroidLongitude": -66.875,
"lastInfoDate": "2024-01-10T00:00:00Z",
"isActive": true,
"createdAt": "2024-01-15T10:40:00Z",
"updatedAt": "2024-01-15T10:40:00Z",
"level3": {
"id": "660e8400-e29b-41d4-a716-446655440001",
"code": "COMP-A",
"name": "Compartimiento Norte"
},
"_count": {
"level6Assets": 3
}
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 25,
"totalPages": 1
}
}
Level 2 (FINCA, PREDIO, etc.)
└─ Level 3 (Compartments, Blocks, Sections)
└─ Level 4 (RODAL, PARCELA, etc.) ← You are here
└─ Level 5 (Reference Units, Sub-parcels)
level3Id.
"4" to retrieve Level 4 unitsRODAL - StandPARCELA - ParcelENUMERATION - EnumerationUNIDAD_DE_MANEJO - Management UnitCONUCO - Small farm plotOTRO_USO - Other useSI (yes) or NO (no)curl -X GET "https://api.confor.app/api/forest/patrimony?level=4&parentId=660e8400-e29b-41d4-a716-446655440001" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"items": [
{
"id": "770e8400-e29b-41d4-a716-446655440002",
"level3Id": "660e8400-e29b-41d4-a716-446655440001",
"code": "RODAL-01",
"name": "Rodal Pino Caribe",
"type": "RODAL",
"fscCertificateStatus": "SI",
"currentLandUseName": "Plantación comercial",
"previousLandUseName": "Pastizal",
"landUseChangeDate": "2020-03-15T00:00:00Z",
"totalAreaHa": 120.75,
"plantableAreaHa": 115.50,
"rotationPhase": "Fase de crecimiento",
"previousUse": "Ganadería extensiva",
"centroidLatitude": 10.525,
"centroidLongitude": -66.875,
"lastInfoDate": "2024-01-10T00:00:00Z",
"isActive": true,
"createdAt": "2024-01-15T10:40:00Z",
"updatedAt": "2024-01-15T10:40:00Z",
"level3": {
"id": "660e8400-e29b-41d4-a716-446655440001",
"code": "COMP-A",
"name": "Compartimiento Norte"
},
"_count": {
"level6Assets": 3
}
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 25,
"totalPages": 1
}
}
"4" to create a Level 4 unitRODAL, PARCELA, ENUMERATION, UNIDAD_DE_MANEJO, CONUCO, OTRO_USOSI or NOcurl -X POST "https://api.confor.app/api/forest/patrimony" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"level": "4",
"data": {
"level3Id": "660e8400-e29b-41d4-a716-446655440001",
"code": "RODAL-01",
"name": "Rodal Pino Caribe",
"type": "RODAL",
"fscCertificateStatus": "SI",
"currentLandUseName": "Plantación comercial",
"previousLandUseName": "Pastizal",
"totalAreaHa": 120.75,
"plantableAreaHa": 115.50,
"rotationPhase": "Fase de crecimiento"
}
}'
{
"id": "770e8400-e29b-41d4-a716-446655440002",
"level3Id": "660e8400-e29b-41d4-a716-446655440001",
"code": "RODAL-01",
"name": "Rodal Pino Caribe",
"type": "RODAL",
"fscCertificateStatus": "SI",
"currentLandUseName": "Plantación comercial",
"previousLandUseName": "Pastizal",
"landUseChangeDate": null,
"totalAreaHa": 120.75,
"plantableAreaHa": 115.50,
"rotationPhase": "Fase de crecimiento",
"previousUse": null,
"centroidLatitude": null,
"centroidLongitude": null,
"lastInfoDate": null,
"isActive": true,
"createdAt": "2024-01-15T10:40:00Z",
"updatedAt": "2024-01-15T10:40:00Z",
"level3": {
"id": "660e8400-e29b-41d4-a716-446655440001",
"code": "COMP-A",
"name": "Compartimiento Norte"
}
}