curl -X GET "https://api.confor.app/api/forest/patrimony?level=2&page=1&limit=25" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"code": "FINCA-001",
"name": "La Esperanza",
"type": "FINCA",
"legalStatus": "ADQUISICION",
"totalAreaHa": 1250.50,
"centroidLatitude": 10.5,
"centroidLongitude": -66.9,
"ownerRepresentative": "Juan Pérez",
"publicRegistryNumber": "REG-2023-001",
"address": "Sector Rural, Municipio XYZ",
"isActive": true,
"organizationId": "org-uuid",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 25,
"totalPages": 1
}
}
curl -X GET "https://api.confor.app/api/forest/patrimony?level=2&page=1&limit=25" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"code": "FINCA-001",
"name": "La Esperanza",
"type": "FINCA",
"legalStatus": "ADQUISICION",
"totalAreaHa": 1250.50,
"centroidLatitude": 10.5,
"centroidLongitude": -66.9,
"ownerRepresentative": "Juan Pérez",
"publicRegistryNumber": "REG-2023-001",
"address": "Sector Rural, Municipio XYZ",
"isActive": true,
"organizationId": "org-uuid",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 25,
"totalPages": 1
}
}
Level 2 (FINCA, PREDIO, etc.)
└─ Level 3 (Compartments, Blocks, Sections)
└─ Level 4 (Stands, Parcels, Management Units)
└─ Level 5 (Reference Units, Sub-parcels)
"2" to retrieve Level 2 unitsFINCA - FarmPREDIO - PropertyHATO - RanchFUNDO - EstateHACIENDA - HaciendaABRAE - Protected Natural AreaADQUISICION - AcquisitionARRIENDO - LeaseUSUFRUCTO - UsufructCOMODATO - Loan for useDECRETO - Decreecurl -X GET "https://api.confor.app/api/forest/patrimony?level=2&page=1&limit=25" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"code": "FINCA-001",
"name": "La Esperanza",
"type": "FINCA",
"legalStatus": "ADQUISICION",
"totalAreaHa": 1250.50,
"centroidLatitude": 10.5,
"centroidLongitude": -66.9,
"ownerRepresentative": "Juan Pérez",
"publicRegistryNumber": "REG-2023-001",
"address": "Sector Rural, Municipio XYZ",
"isActive": true,
"organizationId": "org-uuid",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 25,
"totalPages": 1
}
}
"2" to create a Level 2 unitFINCA, PREDIO, HATO, FUNDO, HACIENDA, ABRAEADQUISICION, ARRIENDO, USUFRUCTO, COMODATO, DECRETOcurl -X POST "https://api.confor.app/api/forest/patrimony" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"level": "2",
"data": {
"code": "FINCA-001",
"name": "La Esperanza",
"type": "FINCA",
"legalStatus": "ADQUISICION",
"totalAreaHa": 1250.50,
"centroidLatitude": 10.5,
"centroidLongitude": -66.9
}
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"code": "FINCA-001",
"name": "La Esperanza",
"type": "FINCA",
"legalStatus": "ADQUISICION",
"totalAreaHa": 1250.50,
"centroidLatitude": 10.5,
"centroidLongitude": -66.9,
"ownerRepresentative": null,
"publicRegistryNumber": null,
"publicRegistryDate": null,
"legalDocumentDate": null,
"address": null,
"lastInfoDate": null,
"isActive": true,
"organizationId": "org-uuid",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}