{"info":{"name":"NextFarm API","description":"Sinh từ https://developers.nextfarm.vn/openapi.json — chỉ các tuyến API key (nfk_…) gọi được. Đặt biến apiKey = khoá của bạn.","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"variable":[{"key":"baseUrl","value":"https://api-prod.nextfarm.vn"},{"key":"apiKey","value":"nfk_..."}],"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{apiKey}}","type":"string"}]},"item":[{"name":"Maps & seasons","item":[{"name":"GET /api/v1/gis/care-schedules","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/care-schedules","host":["{{baseUrl}}"],"path":["api","v1","gis","care-schedules"],"query":[{"key":"parcelId","value":"","disabled":true}],"variable":[]},"description":"Các kích hoạt lịch chăm sóc (lọc theo thửa)\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/care-schedules/preview","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/care-schedules/preview","host":["{{baseUrl}}"],"path":["api","v1","gis","care-schedules","preview"],"query":[{"key":"templateId","value":"","disabled":true},{"key":"parcelId","value":"","disabled":true},{"key":"plotId","value":"","disabled":true},{"key":"seasonId","value":"","disabled":true},{"key":"from","value":"","disabled":true},{"key":"days","value":"","disabled":true}],"variable":[]},"description":"Xem trước lịch (không ghi gì)\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/care-schedules/this-week","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/care-schedules/this-week","host":["{{baseUrl}}"],"path":["api","v1","gis","care-schedules","this-week"],"query":[{"key":"parcelId","value":"","disabled":true}],"variable":[]},"description":"Việc chăm sóc tuần này (chỉ kích hoạt đang BẬT)\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/care-schedules/{id}/calendar","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/care-schedules/:id/calendar","host":["{{baseUrl}}"],"path":["api","v1","gis","care-schedules",":id","calendar"],"query":[{"key":"year","value":"","disabled":true}],"variable":[{"key":"id","value":""}]},"description":"Lịch cả năm của một kích hoạt\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/care-schedules/{id}/generations","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/care-schedules/:id/generations","host":["{{baseUrl}}"],"path":["api","v1","gis","care-schedules",":id","generations"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Lịch sử đã sinh của một kích hoạt\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/crop-types","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/crop-types","host":["{{baseUrl}}"],"path":["api","v1","gis","crop-types"],"query":[{"key":"category","value":"","disabled":true},{"key":"isActive","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true},{"key":"deleted","value":"","disabled":true}],"variable":[]},"description":"Danh sách loại cây trồng\n\nScope: gis.crop-types.view"}},{"name":"GET /api/v1/gis/crop-types/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/crop-types/:id","host":["{{baseUrl}}"],"path":["api","v1","gis","crop-types",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Một loại cây trồng theo mã\n\nScope: gis.crop-types.view"}},{"name":"GET /api/v1/gis/crop-types/{id}/perennial-profile","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/crop-types/:id/perennial-profile","host":["{{baseUrl}}"],"path":["api","v1","gis","crop-types",":id","perennial-profile"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Hồ sơ cây lâu năm của loài\n\nScope: gis.crop-types.view"}},{"name":"GET /api/v1/gis/crop-types/{id}/varieties","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/crop-types/:id/varieties","host":["{{baseUrl}}"],"path":["api","v1","gis","crop-types",":id","varieties"],"query":[{"key":"kind","value":"","disabled":true}],"variable":[{"key":"id","value":""}]},"description":"Giống và gốc ghép của loài\n\nScope: gis.crop-types.view"}},{"name":"GET /api/v1/gis/facilities","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/facilities","host":["{{baseUrl}}"],"path":["api","v1","gis","facilities"],"query":[{"key":"facilityType","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"sourceParcelId","value":"","disabled":true},{"key":"branchId","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true}],"variable":[]},"description":"Danh sách chuồng trại\n\nScope: gis.facilities.view"}},{"name":"GET /api/v1/gis/facilities/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/facilities/:id","host":["{{baseUrl}}"],"path":["api","v1","gis","facilities",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Chi tiết chuồng trại\n\nScope: gis.facilities.view"}},{"name":"GET /api/v1/gis/farmer-groups","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/farmer-groups","host":["{{baseUrl}}"],"path":["api","v1","gis","farmer-groups"],"query":[{"key":"includeInactive","value":"","disabled":true}],"variable":[]},"description":"GET /api/v1/gis/farmer-groups\n\nScope: gis.farmers.view"}},{"name":"GET /api/v1/gis/farmers","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/farmers","host":["{{baseUrl}}"],"path":["api","v1","gis","farmers"],"query":[{"key":"zoneId","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true},{"key":"deleted","value":"","disabled":true},{"key":"groupId","value":"","disabled":true},{"key":"memberType","value":"","disabled":true}],"variable":[]},"description":"Danh sách nông dân\n\nScope: gis.farmers.view"}},{"name":"GET /api/v1/gis/farmers/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/farmers/:id","host":["{{baseUrl}}"],"path":["api","v1","gis","farmers",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Chi tiết nông dân\n\nScope: gis.farmers.view"}},{"name":"GET /api/v1/gis/layers","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/layers","host":["{{baseUrl}}"],"path":["api","v1","gis","layers"],"query":[{"key":"layerType","value":"","disabled":true},{"key":"zoneId","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true}],"variable":[]},"description":"Danh sách map layers\n\nScope: gis.layers.view"}},{"name":"GET /api/v1/gis/layers/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/layers/:id","host":["{{baseUrl}}"],"path":["api","v1","gis","layers",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Chi tiết map layer\n\nScope: gis.layers.view"}},{"name":"GET /api/v1/gis/map/points","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/map/points","host":["{{baseUrl}}"],"path":["api","v1","gis","map","points"],"query":[{"key":"bbox","value":"","disabled":true},{"key":"zoom","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"kind","value":"","disabled":true},{"key":"zoneId","value":"","disabled":true}],"variable":[]},"description":"Điểm nhẹ theo bbox: nhà hộ dân + tâm thửa\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/parcels","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/parcels","host":["{{baseUrl}}"],"path":["api","v1","gis","parcels"],"query":[{"key":"bbox","value":"","disabled":true},{"key":"zoneId","value":"","disabled":true},{"key":"ownerId","value":"","disabled":true},{"key":"cropTypeId","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"branchId","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true},{"key":"deleted","value":"","disabled":true}],"variable":[]},"description":"Danh sách lô thửa\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/parcels/summary","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/parcels/summary","host":["{{baseUrl}}"],"path":["api","v1","gis","parcels","summary"],"query":[{"key":"group_by","value":"","disabled":true},{"key":"zoneId","value":"","disabled":true},{"key":"cropTypeId","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true}],"variable":[]},"description":"Tổng hợp diện tích thửa theo hộ / vùng / cây\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/parcels/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/parcels/:id","host":["{{baseUrl}}"],"path":["api","v1","gis","parcels",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Chi tiết lô thửa\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/parcels/{id}/contains-point","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/parcels/:id/contains-point","host":["{{baseUrl}}"],"path":["api","v1","gis","parcels",":id","contains-point"],"query":[{"key":"lat","value":"","disabled":true},{"key":"lng","value":"","disabled":true}],"variable":[{"key":"id","value":""}]},"description":"Điểm GPS có nằm trong ranh thửa không\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/parcels/{id}/history","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/parcels/:id/history","host":["{{baseUrl}}"],"path":["api","v1","gis","parcels",":id","history"],"query":[{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true}],"variable":[{"key":"id","value":""}]},"description":"Lịch sử thay đổi parcel\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/parcels/{parcelId}/photos","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/parcels/:parcelId/photos","host":["{{baseUrl}}"],"path":["api","v1","gis","parcels",":parcelId","photos"],"query":[],"variable":[{"key":"parcelId","value":""}]},"description":"Danh sách ảnh của lô thửa\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/plots","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/plots","host":["{{baseUrl}}"],"path":["api","v1","gis","plots"],"query":[{"key":"parcel_id","value":"","disabled":true}],"variable":[]},"description":"Danh sách khu của một thửa\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/plots/{id}/crops","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/plots/:id/crops","host":["{{baseUrl}}"],"path":["api","v1","gis","plots",":id","crops"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Các loài trồng trong khu (trồng xen)\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/search","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/search","host":["{{baseUrl}}"],"path":["api","v1","gis","search"],"query":[{"key":"q","value":"","disabled":true},{"key":"limit","value":"","disabled":true}],"variable":[]},"description":"Tìm thửa, mùa vụ, nông dân, vùng\n\nTự lọc theo scope của khoá"}},{"name":"GET /api/v1/gis/season-templates","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/season-templates","host":["{{baseUrl}}"],"path":["api","v1","gis","season-templates"],"query":[{"key":"cropTypeId","value":"","disabled":true}],"variable":[]},"description":"Danh sách quy trình mẫu\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/season-templates/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/season-templates/:id","host":["{{baseUrl}}"],"path":["api","v1","gis","season-templates",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Một quy trình mẫu\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/seasons","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/seasons","host":["{{baseUrl}}"],"path":["api","v1","gis","seasons"],"query":[{"key":"parcelId","value":"","disabled":true},{"key":"year","value":"","disabled":true}],"variable":[]},"description":"Danh sách mùa vụ\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/seasons/groups","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/seasons/groups","host":["{{baseUrl}}"],"path":["api","v1","gis","seasons","groups"],"query":[{"key":"year","value":"","disabled":true},{"key":"branchId","value":"","disabled":true}],"variable":[]},"description":"Nhóm vụ của một năm (cùng cây, cùng tên vụ)\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/seasons/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/seasons/:id","host":["{{baseUrl}}"],"path":["api","v1","gis","seasons",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Một mùa vụ theo mã\n\nScope: gis.parcels.view"}},{"name":"GET /api/v1/gis/zones","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/zones","host":["{{baseUrl}}"],"path":["api","v1","gis","zones"],"query":[{"key":"zone_type","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"page_size","value":"","disabled":true},{"key":"deleted","value":"","disabled":true},{"key":"include_stats","value":"","disabled":true},{"key":"branch_id","value":"","disabled":true}],"variable":[]},"description":"Danh sách zones\n\nScope: gis.zones.view"}},{"name":"GET /api/v1/gis/zones/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/zones/:id","host":["{{baseUrl}}"],"path":["api","v1","gis","zones",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Chi tiết zone\n\nScope: gis.zones.view"}},{"name":"GET /api/v1/gis/zones/{id}/stats","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/gis/zones/:id/stats","host":["{{baseUrl}}"],"path":["api","v1","gis","zones",":id","stats"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Thống kê zone\n\nScope: gis.zones.view"}}]},{"name":"IoT (read-only)","item":[{"name":"GET /api/v1/iot/alert-rules","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/alert-rules","host":["{{baseUrl}}"],"path":["api","v1","iot","alert-rules"],"query":[{"key":"deviceId","value":"","disabled":true}],"variable":[]},"description":"Danh sách rule cảnh báo\n\nScope: iot.alerts.view"}},{"name":"GET /api/v1/iot/alerts","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/alerts","host":["{{baseUrl}}"],"path":["api","v1","iot","alerts"],"query":[{"key":"deviceId","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"severity","value":"","disabled":true},{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true}],"variable":[]},"description":"Danh sách cảnh báo\n\nScope: iot.alerts.view"}},{"name":"GET /api/v1/iot/commands","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/commands","host":["{{baseUrl}}"],"path":["api","v1","iot","commands"],"query":[{"key":"deviceId","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true}],"variable":[]},"description":"Danh sách lệnh thiết bị\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices","host":["{{baseUrl}}"],"path":["api","v1","iot","devices"],"query":[{"key":"status","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true},{"key":"parcelId","value":"","disabled":true},{"key":"unassigned","value":"","disabled":true},{"key":"zoneId","value":"","disabled":true}],"variable":[]},"description":"Danh sách thiết bị IoT\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices/control-states","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices/control-states","host":["{{baseUrl}}"],"path":["api","v1","iot","devices","control-states"],"query":[{"key":"zoneId","value":"","disabled":true}],"variable":[]},"description":"Trạng thái điều khiển nhiều thiết bị (màn hình nhiều nhà)\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices/{deviceId}/control-state","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices/:deviceId/control-state","host":["{{baseUrl}}"],"path":["api","v1","iot","devices",":deviceId","control-state"],"query":[],"variable":[{"key":"deviceId","value":""}]},"description":"Trạng thái điều khiển thực tế của 1 thiết bị\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices/{deviceId}/display-prefs","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices/:deviceId/display-prefs","host":["{{baseUrl}}"],"path":["api","v1","iot","devices",":deviceId","display-prefs"],"query":[],"variable":[{"key":"deviceId","value":""}]},"description":"GET /api/v1/iot/devices/{deviceId}/display-prefs\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices/{deviceId}/fert-meters","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices/:deviceId/fert-meters","host":["{{baseUrl}}"],"path":["api","v1","iot","devices",":deviceId","fert-meters"],"query":[],"variable":[{"key":"deviceId","value":""}]},"description":"Đồng hồ các bồn phân: chỗ cắm, hệ số bo đang dùng, và số đếm xung thô mới nhất\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices/{deviceId}/output-config/channels","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices/:deviceId/output-config/channels","host":["{{baseUrl}}"],"path":["api","v1","iot","devices",":deviceId","output-config","channels"],"query":[],"variable":[{"key":"deviceId","value":""}]},"description":"Danh sách kênh ngõ ra đã cấu hình (đọc bản backend đã persist từ echo dev_cfg — không phụ thuộc realtime)\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices/{deviceId}/output-config/irrigation","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices/:deviceId/output-config/irrigation","host":["{{baseUrl}}"],"path":["api","v1","iot","devices",":deviceId","output-config","irrigation"],"query":[],"variable":[{"key":"deviceId","value":""}]},"description":"Cấu hình hệ tưới đã gán: bơm/van vùng/van phân bón kể cả van Denso (đọc bản backend đã persist từ echo irr_out — không phụ thuộc realtime)\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices/{deviceId}/output-config/mcv-cfg","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices/:deviceId/output-config/mcv-cfg","host":["{{baseUrl}}"],"path":["api","v1","iot","devices",":deviceId","output-config","mcv-cfg"],"query":[],"variable":[{"key":"deviceId","value":""}]},"description":"Trạng thái đồng bộ cài đặt van Denso: giá trị đã đặt (desired), bo đang giữ (reported, từ echo dev_cfg), ack và 1 trong 8 trạng thái\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices/{deviceId}/output-config/summary","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices/:deviceId/output-config/summary","host":["{{baseUrl}}"],"path":["api","v1","iot","devices",":deviceId","output-config","summary"],"query":[],"variable":[{"key":"deviceId","value":""}]},"description":"Gói tóm tắt cấu hình ngõ ra server đã NHỚ (free_ports…) — trả JSON thô, không phụ thuộc realtime (hết chập chờn). 204 nếu server chưa từng nhận.\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices/{deviceId}/schedules","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices/:deviceId/schedules","host":["{{baseUrl}}"],"path":["api","v1","iot","devices",":deviceId","schedules"],"query":[],"variable":[{"key":"deviceId","value":""}]},"description":"Danh sách lịch hẹn giờ của thiết bị\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices/{deviceId}/setpoints","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices/:deviceId/setpoints","host":["{{baseUrl}}"],"path":["api","v1","iot","devices",":deviceId","setpoints"],"query":[],"variable":[{"key":"deviceId","value":""}]},"description":"GET /api/v1/iot/devices/{deviceId}/setpoints\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/devices/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/devices/:id","host":["{{baseUrl}}"],"path":["api","v1","iot","devices",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Chi tiết thiết bị IoT — đầy đủ fields cho 4-tab detail page\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/emergency-stop","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/emergency-stop","host":["{{baseUrl}}"],"path":["api","v1","iot","emergency-stop"],"query":[{"key":"activeOnly","value":"","disabled":true}],"variable":[]},"description":"Khoá dừng khẩn đang hiệu lực (activeOnly=true, mặc định) hoặc 20 lần gần nhất\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/reports/irrigation-logs","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/reports/irrigation-logs","host":["{{baseUrl}}"],"path":["api","v1","iot","reports","irrigation-logs"],"query":[{"key":"deviceId","value":"","disabled":true},{"key":"zoneId","value":"","disabled":true},{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true}],"variable":[]},"description":"Danh sách lịch sử tưới (phân trang)\n\nScope: iot.telemetry.view"}},{"name":"GET /api/v1/iot/reports/irrigation-summary","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/reports/irrigation-summary","host":["{{baseUrl}}"],"path":["api","v1","iot","reports","irrigation-summary"],"query":[{"key":"deviceId","value":"","disabled":true},{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true}],"variable":[]},"description":"Tổng hợp báo cáo tưới tiêu\n\nScope: iot.telemetry.view"}},{"name":"GET /api/v1/iot/reports/irrigation-summary/export","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/reports/irrigation-summary/export","host":["{{baseUrl}}"],"path":["api","v1","iot","reports","irrigation-summary","export"],"query":[{"key":"deviceId","value":"","disabled":true},{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true}],"variable":[]},"description":"Xuất báo cáo tưới tiêu ra Excel\n\nScope: iot.telemetry.view"}},{"name":"GET /api/v1/iot/schedules/upcoming","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/schedules/upcoming","host":["{{baseUrl}}"],"path":["api","v1","iot","schedules","upcoming"],"query":[{"key":"from","value":"","disabled":true},{"key":"days","value":"","disabled":true},{"key":"device_id","value":"","disabled":true}],"variable":[]},"description":"Các cữ tưới sắp chạy của cả trại (gộp theo cữ)\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/search","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/search","host":["{{baseUrl}}"],"path":["api","v1","iot","search"],"query":[{"key":"q","value":"","disabled":true},{"key":"limit","value":"","disabled":true}],"variable":[]},"description":"Tìm thiết bị\n\nScope: iot.devices.view"}},{"name":"GET /api/v1/iot/sensor-readings","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/sensor-readings","host":["{{baseUrl}}"],"path":["api","v1","iot","sensor-readings"],"query":[{"key":"deviceId","value":"","disabled":true},{"key":"zoneId","value":"","disabled":true},{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true}],"variable":[]},"description":"Tra cứu số liệu cảm biến theo khoảng thời gian\n\nScope: iot.telemetry.view"}},{"name":"GET /api/v1/iot/sensor-readings/latest","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/sensor-readings/latest","host":["{{baseUrl}}"],"path":["api","v1","iot","sensor-readings","latest"],"query":[{"key":"zoneId","value":"","disabled":true}],"variable":[]},"description":"Giá trị mới nhất của từng thiết bị (30 phút gần nhất)\n\nScope: iot.telemetry.view"}},{"name":"GET /api/v1/iot/setup/progress","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/iot/setup/progress","host":["{{baseUrl}}"],"path":["api","v1","iot","setup","progress"],"query":[],"variable":[]},"description":"Tiến trình onboarding thiết bị IoT suy từ dữ liệu hiện có\n\nScope: iot.devices.view"}}]},{"name":"Harvest & traceability","item":[{"name":"GET /api/v1/harvest/certifications","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/certifications","host":["{{baseUrl}}"],"path":["api","v1","harvest","certifications"],"query":[],"variable":[]},"description":"Danh sách chứng nhận của workspace\n\nScope: harvest.certification.view"}},{"name":"GET /api/v1/harvest/certifications/expiring","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/certifications/expiring","host":["{{baseUrl}}"],"path":["api","v1","harvest","certifications","expiring"],"query":[{"key":"within_days","value":"","disabled":true},{"key":"include_expired","value":"","disabled":true}],"variable":[]},"description":"Chứng nhận sắp hết hạn\n\nScope: harvest.certification.view"}},{"name":"GET /api/v1/harvest/harvest-records","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/harvest-records","host":["{{baseUrl}}"],"path":["api","v1","harvest","harvest-records"],"query":[{"key":"status","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true},{"key":"filter_rules","value":"","disabled":true}],"variable":[]},"description":"Danh sách bản ghi thu hoạch\n\nScope: harvest.harvest.view"}},{"name":"POST /api/v1/harvest/harvest-records","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/harvest-records","host":["{{baseUrl}}"],"path":["api","v1","harvest","harvest-records"],"query":[],"variable":[]},"description":"Khai báo thu hoạch\n\nScope: harvest.harvest.create","body":{"mode":"raw","raw":"{\n  \"confirm\": true,\n  \"crop_type_id\": \"0190a3c2-5b1e-7c3d-8e4f-000000000001\",\n  \"declared_quantity_kg\": 1.5,\n  \"farming_task_id\": \"0190a3c2-5b1e-7c3d-8e4f-000000000001\",\n  \"harvest_date\": \"2026-10-28\",\n  \"notes\": \"…\",\n  \"organisms\": [\n    {\n      \"fruit_count\": 1,\n      \"organism_id\": \"0190a3c2-5b1e-7c3d-8e4f-000000000001\",\n      \"quantity_kg\": 1.5\n    }\n  ],\n  \"parcel_id\": \"0190a3c2-5b1e-7c3d-8e4f-000000000001\",\n  \"phi_override_reason\": \"…\",\n  \"photo_urls\": [\n    \"…\"\n  ],\n  \"season_id\": \"0190a3c2-5b1e-7c3d-8e4f-000000000001\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"GET /api/v1/harvest/harvest-records/preview-trace","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/harvest-records/preview-trace","host":["{{baseUrl}}"],"path":["api","v1","harvest","harvest-records","preview-trace"],"query":[{"key":"parcelId","value":"","disabled":true},{"key":"seasonId","value":"","disabled":true}],"variable":[]},"description":"Kiểm tra trước khi khoá (D2): bó truy xuất sẽ nhận những gì\n\nScope: harvest.harvest.view"}},{"name":"GET /api/v1/harvest/harvest-records/summary","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/harvest-records/summary","host":["{{baseUrl}}"],"path":["api","v1","harvest","harvest-records","summary"],"query":[{"key":"group_by","value":"","disabled":true},{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true},{"key":"zoneId","value":"","disabled":true},{"key":"cropTypeId","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true}],"variable":[]},"description":"Tổng hợp sản lượng theo hộ / vùng / cây / thửa\n\nScope: harvest.harvest.view"}},{"name":"GET /api/v1/harvest/harvest-records/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/harvest-records/:id","host":["{{baseUrl}}"],"path":["api","v1","harvest","harvest-records",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Chi tiết bản ghi thu hoạch\n\nScope: harvest.harvest.view"}},{"name":"PUT /api/v1/harvest/harvest-records/{id}","request":{"method":"PUT","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/harvest-records/:id","host":["{{baseUrl}}"],"path":["api","v1","harvest","harvest-records",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Cập nhật khai báo thu hoạch\n\nScope: harvest.harvest.create","body":{"mode":"raw","raw":"{\n  \"declared_quantity_kg\": 1.5,\n  \"harvest_date\": \"2026-10-28\",\n  \"notes\": \"…\",\n  \"phi_override_reason\": \"…\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"GET /api/v1/harvest/market-prices","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/market-prices","host":["{{baseUrl}}"],"path":["api","v1","harvest","market-prices"],"query":[{"key":"commodityCode","value":"","disabled":true},{"key":"market","value":"","disabled":true},{"key":"fromDate","value":"","disabled":true},{"key":"toDate","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true}],"variable":[]},"description":"Danh sách giá đã ghi nhận\n\nScope: harvest.market-prices.view"}},{"name":"GET /api/v1/harvest/market-prices/series","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/market-prices/series","host":["{{baseUrl}}"],"path":["api","v1","harvest","market-prices","series"],"query":[{"key":"commodityCode","value":"","disabled":true},{"key":"fromDate","value":"","disabled":true},{"key":"toDate","value":"","disabled":true},{"key":"unit","value":"","disabled":true}],"variable":[]},"description":"Chuỗi giá theo thời gian để vẽ biểu đồ\n\nScope: harvest.market-prices.view"}},{"name":"GET /api/v1/harvest/market-prices/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/market-prices/:id","host":["{{baseUrl}}"],"path":["api","v1","harvest","market-prices",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Chi tiết một bản ghi giá\n\nScope: harvest.market-prices.view"}},{"name":"GET /api/v1/harvest/parcels/phi-active","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/parcels/phi-active","host":["{{baseUrl}}"],"path":["api","v1","harvest","parcels","phi-active"],"query":[{"key":"on","value":"","disabled":true}],"variable":[]},"description":"Các thửa đang trong thời gian cách ly\n\nScope: harvest.harvest.view"}},{"name":"GET /api/v1/harvest/parcels/{parcelId}/phi-status","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/parcels/:parcelId/phi-status","host":["{{baseUrl}}"],"path":["api","v1","harvest","parcels",":parcelId","phi-status"],"query":[{"key":"on","value":"","disabled":true}],"variable":[{"key":"parcelId","value":""}]},"description":"Thửa có đang trong thời gian cách ly không\n\nScope: harvest.harvest.view"}},{"name":"GET /api/v1/harvest/product-infos","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/product-infos","host":["{{baseUrl}}"],"path":["api","v1","harvest","product-infos"],"query":[],"variable":[]},"description":"Danh sách hồ sơ sản phẩm\n\nScope: harvest.trace.view"}},{"name":"GET /api/v1/harvest/qr-codes","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/qr-codes","host":["{{baseUrl}}"],"path":["api","v1","harvest","qr-codes"],"query":[{"key":"seasonId","value":"","disabled":true}],"variable":[]},"description":"Danh sách mã QR của 1 mùa vụ\n\nScope: harvest.qr-codes.view"}},{"name":"GET /api/v1/harvest/qr-codes/usage","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/qr-codes/usage","host":["{{baseUrl}}"],"path":["api","v1","harvest","qr-codes","usage"],"query":[],"variable":[]},"description":"Số tem đã dùng / trần của gói Miễn phí (5 tem tổng / workspace)\n\nScope: harvest.qr-codes.view"}},{"name":"GET /api/v1/harvest/qr-codes/{id}/scans","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/qr-codes/:id/scans","host":["{{baseUrl}}"],"path":["api","v1","harvest","qr-codes",":id","scans"],"query":[{"key":"days","value":"","disabled":true}],"variable":[{"key":"id","value":""}]},"description":"Lượt quét theo ngày của một mã QR (Q6)\n\nScope: harvest.qr-codes.view"}},{"name":"GET /api/v1/harvest/search","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/search","host":["{{baseUrl}}"],"path":["api","v1","harvest","search"],"query":[{"key":"q","value":"","disabled":true},{"key":"limit","value":"","disabled":true}],"variable":[]},"description":"Tìm bản ghi thu hoạch, tem QR, chứng nhận\n\nTự lọc theo scope của khoá"}},{"name":"GET /api/v1/harvest/trace","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/trace","host":["{{baseUrl}}"],"path":["api","v1","harvest","trace"],"query":[],"variable":[]},"description":"Danh sách TraceBundle của workspace (yêu cầu đăng nhập)\n\nScope: harvest.trace.view"}},{"name":"GET /api/v1/harvest/trace-anchors","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/trace-anchors","host":["{{baseUrl}}"],"path":["api","v1","harvest","trace-anchors"],"query":[{"key":"take","value":"","disabled":true}],"variable":[]},"description":"Lượt neo có lô của workspace (D7) + lô đã niêm phong chờ lượt tới\n\nScope: harvest.trace.view"}},{"name":"GET /api/v1/harvest/trace-certificate/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/trace-certificate/:id","host":["{{baseUrl}}"],"path":["api","v1","harvest","trace-certificate",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Chứng thư xác thực blockchain (PDF, D4)\n\nScope: harvest.trace.view"}},{"name":"GET /api/v1/harvest/trace-incidents","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/trace-incidents","host":["{{baseUrl}}"],"path":["api","v1","harvest","trace-incidents"],"query":[{"key":"status","value":"","disabled":true}],"variable":[]},"description":"Sự cố lệch dữ liệu của workspace (D8)\n\nScope: harvest.trace.view"}},{"name":"GET /api/v1/harvest/trace-pdf/{code}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/trace-pdf/:code","host":["{{baseUrl}}"],"path":["api","v1","harvest","trace-pdf",":code"],"query":[],"variable":[{"key":"code","value":""}]},"description":"Tải hồ sơ truy xuất PDF theo mã QR (YÊU CẦU ĐĂNG NHẬP)\n\nScope: harvest.trace.view"}},{"name":"GET /api/v1/harvest/trace-seal-document/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/trace-seal-document/:id","host":["{{baseUrl}}"],"path":["api","v1","harvest","trace-seal-document",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Tải văn bản niêm phong (bản đầy đủ đã băm) — chỉ người của nhà\n\nScope: harvest.trace.view"}},{"name":"GET /api/v1/harvest/trace-settings","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/harvest/trace-settings","host":["{{baseUrl}}"],"path":["api","v1","harvest","trace-settings"],"query":[],"variable":[]},"description":"GET /api/v1/harvest/trace-settings\n\nScope: harvest.trace.view"}}]},{"name":"Farm books & tasks","item":[{"name":"GET /api/v1/office/apps","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/apps","host":["{{baseUrl}}"],"path":["api","v1","office","apps"],"query":[{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true},{"key":"search","value":"","disabled":true}],"variable":[]},"description":"Liệt kê app (phân trang)\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/apps/{appId}/dashboards","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/apps/:appId/dashboards","host":["{{baseUrl}}"],"path":["api","v1","office","apps",":appId","dashboards"],"query":[],"variable":[{"key":"appId","value":""}]},"description":"Liệt kê bảng điều khiển của một ứng dụng\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/apps/{appId}/tables","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/apps/:appId/tables","host":["{{baseUrl}}"],"path":["api","v1","office","apps",":appId","tables"],"query":[],"variable":[{"key":"appId","value":""}]},"description":"Liệt kê table của app\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/apps/{appId}/tables/{tableId}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/apps/:appId/tables/:tableId","host":["{{baseUrl}}"],"path":["api","v1","office","apps",":appId","tables",":tableId"],"query":[],"variable":[{"key":"appId","value":""},{"key":"tableId","value":""}]},"description":"Lấy chi tiết table\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/apps/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/apps/:id","host":["{{baseUrl}}"],"path":["api","v1","office","apps",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Lấy chi tiết app\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/automation-logs","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automation-logs","host":["{{baseUrl}}"],"path":["api","v1","office","automation-logs"],"query":[{"key":"automationId","value":"","disabled":true},{"key":"result","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true},{"key":"enrollmentId","value":"","disabled":true}],"variable":[]},"description":"Nhật ký chạy, mới nhất trước\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automation-logs/metrics","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automation-logs/metrics","host":["{{baseUrl}}"],"path":["api","v1","office","automation-logs","metrics"],"query":[{"key":"days","value":"","disabled":true}],"variable":[]},"description":"Chỉ số vận hành của Tự động hoá trong công ty\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automation-logs/runs","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automation-logs/runs","host":["{{baseUrl}}"],"path":["api","v1","office","automation-logs","runs"],"query":[{"key":"automationId","value":"","disabled":true},{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true},{"key":"result","value":"","disabled":true},{"key":"createdBy","value":"","disabled":true},{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true},{"key":"search","value":"","disabled":true}],"variable":[]},"description":"Lịch sử theo LƯỢT CHẠY, mới nhất trước\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automation-logs/stats","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automation-logs/stats","host":["{{baseUrl}}"],"path":["api","v1","office","automation-logs","stats"],"query":[{"key":"automationId","value":"","disabled":true},{"key":"days","value":"","disabled":true}],"variable":[]},"description":"Bốn ô số liệu trên đầu màn nhật ký\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automation-templates","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automation-templates","host":["{{baseUrl}}"],"path":["api","v1","office","automation-templates"],"query":[],"variable":[]},"description":"Danh sách mẫu của công ty, mới nhất trước\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations","host":["{{baseUrl}}"],"path":["api","v1","office","automations"],"query":[{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true},{"key":"search","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"triggerType","value":"","disabled":true},{"key":"createdBy","value":"","disabled":true},{"key":"tableId","value":"","disabled":true},{"key":"actionType","value":"","disabled":true},{"key":"sort","value":"","disabled":true},{"key":"failing","value":"","disabled":true}],"variable":[]},"description":"Danh sách automation\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations/ai-columns/catalog","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations/ai-columns/catalog","host":["{{baseUrl}}"],"path":["api","v1","office","automations","ai-columns","catalog"],"query":[],"variable":[]},"description":"Danh mục chế độ của cột AI\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations/catalog","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations/catalog","host":["{{baseUrl}}"],"path":["api","v1","office","automations","catalog"],"query":[],"variable":[]},"description":"Catalog trigger/action khả dụng để dựng automation\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations/merge-fields","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations/merge-fields","host":["{{baseUrl}}"],"path":["api","v1","office","automations","merge-fields"],"query":[{"key":"tableId","value":"","disabled":true},{"key":"triggerType","value":"","disabled":true},{"key":"automationId","value":"","disabled":true},{"key":"stepId","value":"","disabled":true},{"key":"eventType","value":"","disabled":true}],"variable":[]},"description":"Danh mục biến {{…}} chèn được vào cấu hình hành động\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations/quota","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations/quota","host":["{{baseUrl}}"],"path":["api","v1","office","automations","quota"],"query":[],"variable":[]},"description":"Hạn mức lượt chạy tháng của công ty\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations/service-events","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations/service-events","host":["{{baseUrl}}"],"path":["api","v1","office","automations","service-events"],"query":[],"variable":[]},"description":"Danh mục sự kiện của phần mềm khác (kích hoạt service_event)\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations/suggestions","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations/suggestions","host":["{{baseUrl}}"],"path":["api","v1","office","automations","suggestions"],"query":[],"variable":[]},"description":"Gợi ý tự động hoá riêng cho công ty (tab Gợi ý)\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations/summary","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations/summary","host":["{{baseUrl}}"],"path":["api","v1","office","automations","summary"],"query":[],"variable":[]},"description":"Số đếm cho Trung tâm tự động hoá\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations/:id","host":["{{baseUrl}}"],"path":["api","v1","office","automations",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Lấy 1 automation (kèm steps)\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations/{id}/diagnosis","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations/:id/diagnosis","host":["{{baseUrl}}"],"path":["api","v1","office","automations",":id","diagnosis"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Chẩn đoán: vì sao luật chạy / không chạy\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations/{id}/overlaps","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations/:id/overlaps","host":["{{baseUrl}}"],"path":["api","v1","office","automations",":id","overlaps"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Luật khác cùng kích hoạt và cùng làm việc này\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/automations/{id}/webhook/sample","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/automations/:id/webhook/sample","host":["{{baseUrl}}"],"path":["api","v1","office","automations",":id","webhook","sample"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Mẫu dữ liệu + cây khoá\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/calendar-links","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/calendar-links","host":["{{baseUrl}}"],"path":["api","v1","office","calendar-links"],"query":[],"variable":[]},"description":"Tình trạng nối lịch của tôi\n\nScope: office.calendar.view"}},{"name":"GET /api/v1/office/calendar-links/meeting-providers","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/calendar-links/meeting-providers","host":["{{baseUrl}}"],"path":["api","v1","office","calendar-links","meeting-providers"],"query":[],"variable":[]},"description":"Những nơi cung cấp phòng họp trực tuyến đang bật\n\nScope: office.calendar.view"}},{"name":"GET /api/v1/office/calendar-preferences","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/calendar-preferences","host":["{{baseUrl}}"],"path":["api","v1","office","calendar-preferences"],"query":[],"variable":[]},"description":"Thiết lập màn lịch của tôi\n\nScope: office.calendar.view"}},{"name":"GET /api/v1/office/calendars","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/calendars","host":["{{baseUrl}}"],"path":["api","v1","office","calendars"],"query":[],"variable":[]},"description":"Lịch tôi đang đăng ký (cột trái)\n\nScope: office.calendar.view"}},{"name":"GET /api/v1/office/calendars/subscribable","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/calendars/subscribable","host":["{{baseUrl}}"],"path":["api","v1","office","calendars","subscribable"],"query":[{"key":"term","value":"","disabled":true}],"variable":[]},"description":"Lịch có thể đăng ký thêm\n\nScope: office.calendar.view"}},{"name":"GET /api/v1/office/connection-keys","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/connection-keys","host":["{{baseUrl}}"],"path":["api","v1","office","connection-keys"],"query":[],"variable":[]},"description":"Danh sách khoá đã cấp\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/dashboards/{id}/widgets/{widgetId}/data","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/dashboards/:id/widgets/:widgetId/data","host":["{{baseUrl}}"],"path":["api","v1","office","dashboards",":id","widgets",":widgetId","data"],"query":[],"variable":[{"key":"id","value":""},{"key":"widgetId","value":""}]},"description":"Số liệu một ô, tính theo quyền người xem\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/events","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/events","host":["{{baseUrl}}"],"path":["api","v1","office","events"],"query":[{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true},{"key":"eventType","value":"","disabled":true},{"key":"mineOnly","value":"","disabled":true}],"variable":[]},"description":"Sự kiện trong một khoảng thời gian\n\nScope: office.calendar.view"}},{"name":"GET /api/v1/office/events/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/events/:id","host":["{{baseUrl}}"],"path":["api","v1","office","events",":id"],"query":[{"key":"occurrenceStart","value":"","disabled":true}],"variable":[{"key":"id","value":""}]},"description":"Chi tiết một sự kiện kèm người dự và phòng đã giữ\n\nScope: office.calendar.view"}},{"name":"GET /api/v1/office/events/{id}.ics","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/events/:id.ics","host":["{{baseUrl}}"],"path":["api","v1","office","events",":id.ics"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Tải tệp lịch .ics của sự kiện\n\nScope: office.calendar.view"}},{"name":"GET /api/v1/office/farm/device-controls","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/farm/device-controls","host":["{{baseUrl}}"],"path":["api","v1","office","farm","device-controls"],"query":[{"key":"status","value":"","disabled":true},{"key":"scope","value":"","disabled":true},{"key":"take","value":"","disabled":true}],"variable":[]},"description":"Danh sách phiếu lệnh\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/farm/device-controls/emergency-stop","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/farm/device-controls/emergency-stop","host":["{{baseUrl}}"],"path":["api","v1","office","farm","device-controls","emergency-stop"],"query":[],"variable":[]},"description":"Trạng thái TẮT KHẨN điều khiển thiết bị tự động của trại\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/farm/device-controls/rules/{automationId}/approval","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/farm/device-controls/rules/:automationId/approval","host":["{{baseUrl}}"],"path":["api","v1","office","farm","device-controls","rules",":automationId","approval"],"query":[],"variable":[{"key":"automationId","value":""}]},"description":"Trạng thái duyệt tự chạy của một luật\n\nScope: office.automation.view"}},{"name":"GET /api/v1/office/meeting-minutes","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/meeting-minutes","host":["{{baseUrl}}"],"path":["api","v1","office","meeting-minutes"],"query":[{"key":"eventId","value":"","disabled":true}],"variable":[]},"description":"Biên bản của một cuộc họp\n\nScope: office.calendar.view"}},{"name":"GET /api/v1/office/meeting-rooms","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/meeting-rooms","host":["{{baseUrl}}"],"path":["api","v1","office","meeting-rooms"],"query":[{"key":"activeOnly","value":"","disabled":true},{"key":"minCapacity","value":"","disabled":true},{"key":"equipment","value":"","disabled":true},{"key":"building","value":"","disabled":true}],"variable":[]},"description":"Danh sách phòng họp\n\nScope: office.calendar.view"}},{"name":"GET /api/v1/office/meeting-rooms/{id}/busy-slots","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/meeting-rooms/:id/busy-slots","host":["{{baseUrl}}"],"path":["api","v1","office","meeting-rooms",":id","busy-slots"],"query":[{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true}],"variable":[{"key":"id","value":""}]},"description":"Khung giờ bận của một phòng\n\nScope: office.calendar.view"}},{"name":"GET /api/v1/office/tables/{tableId}/fields","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/fields","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","fields"],"query":[],"variable":[{"key":"tableId","value":""}]},"description":"Liệt kê field của table\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/tables/{tableId}/fields/{fieldId}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/fields/:fieldId","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","fields",":fieldId"],"query":[],"variable":[{"key":"tableId","value":""},{"key":"fieldId","value":""}]},"description":"Lấy chi tiết field\n\nScope: office.base.record.view"}},{"name":"POST /api/v1/office/tables/{tableId}/records","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/records","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","records"],"query":[],"variable":[{"key":"tableId","value":""}]},"description":"Tạo record mới\n\nScope: office.base.record.manage","body":{"mode":"raw","raw":"{\n  \"data\": null\n}","options":{"raw":{"language":"json"}}}}},{"name":"POST /api/v1/office/tables/{tableId}/records/aggregate","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/records/aggregate","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","records","aggregate"],"query":[],"variable":[{"key":"tableId","value":""}]},"description":"Cộng gộp theo cột (tổng · trung bình · nhỏ nhất · lớn nhất · đếm)\n\nScope: office.base.record.view","body":{"mode":"raw","raw":"{\n  \"fieldIds\": [\n    \"0190a3c2-5b1e-7c3d-8e4f-000000000001\"\n  ],\n  \"filter\": {\n    \"conditions\": [\n      {\n        \"fieldId\": \"…\",\n        \"operator\": \"…\",\n        \"value\": null\n      }\n    ],\n    \"conjunction\": \"…\",\n    \"groups\": [\n      {\n        \"conditions\": [\n          {\n            \"fieldId\": null,\n            \"operator\": null,\n            \"value\": null\n          }\n        ],\n        \"conjunction\": \"…\",\n        \"groups\": [\n          {\n            \"conditions\": null,\n            \"conjunction\": null,\n            \"groups\": null,\n            \"hasCriteria\": null\n          }\n        ],\n        \"hasCriteria\": true\n      }\n    ],\n    \"hasCriteria\": true\n  }\n}","options":{"raw":{"language":"json"}}}}},{"name":"POST /api/v1/office/tables/{tableId}/records/batch","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/records/batch","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","records","batch"],"query":[],"variable":[{"key":"tableId","value":""}]},"description":"Tạo nhiều record (tối đa 1000, all-or-nothing)\n\nScope: office.base.record.manage","body":{"mode":"raw","raw":"{\n  \"records\": [\n    null\n  ]\n}","options":{"raw":{"language":"json"}}}}},{"name":"PUT /api/v1/office/tables/{tableId}/records/batch","request":{"method":"PUT","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/records/batch","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","records","batch"],"query":[],"variable":[{"key":"tableId","value":""}]},"description":"Cập nhật nhiều record (tối đa 1000, all-or-nothing)\n\nScope: office.base.record.manage","body":{"mode":"raw","raw":"{\n  \"items\": [\n    {\n      \"data\": null,\n      \"id\": \"0190a3c2-5b1e-7c3d-8e4f-000000000001\",\n      \"replace\": true\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}}},{"name":"POST /api/v1/office/tables/{tableId}/records/groups","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/records/groups","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","records","groups"],"query":[],"variable":[{"key":"tableId","value":""}]},"description":"Nhóm dòng: giá trị cột nhóm + số dòng, theo đúng thứ tự của records/list\n\nScope: office.base.record.view","body":{"mode":"raw","raw":"{\n  \"filter\": {\n    \"conditions\": [\n      {\n        \"fieldId\": \"…\",\n        \"operator\": \"…\",\n        \"value\": null\n      }\n    ],\n    \"conjunction\": \"…\",\n    \"groups\": [\n      {\n        \"conditions\": [\n          {\n            \"fieldId\": null,\n            \"operator\": null,\n            \"value\": null\n          }\n        ],\n        \"conjunction\": \"…\",\n        \"groups\": [\n          {\n            \"conditions\": null,\n            \"conjunction\": null,\n            \"groups\": null,\n            \"hasCriteria\": null\n          }\n        ],\n        \"hasCriteria\": true\n      }\n    ],\n    \"hasCriteria\": true\n  },\n  \"groupFieldId\": \"…\",\n  \"sort\": [\n    {\n      \"descending\": true,\n      \"fieldId\": \"…\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}}},{"name":"POST /api/v1/office/tables/{tableId}/records/list","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/records/list","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","records","list"],"query":[],"variable":[{"key":"tableId","value":""}]},"description":"Liệt kê record (phân trang + filter có cấu trúc trong body)\n\nScope: office.base.record.view","body":{"mode":"raw","raw":"{\n  \"colorRules\": [\n    {\n      \"color\": \"…\",\n      \"filter\": {\n        \"conditions\": [\n          {\n            \"fieldId\": null,\n            \"operator\": null,\n            \"value\": null\n          }\n        ],\n        \"conjunction\": \"…\",\n        \"groups\": [\n          {\n            \"conditions\": null,\n            \"conjunction\": null,\n            \"groups\": null,\n            \"hasCriteria\": null\n          }\n        ],\n        \"hasCriteria\": true\n      }\n    }\n  ],\n  \"filter\": {\n    \"conditions\": [\n      {\n        \"fieldId\": \"…\",\n        \"operator\": \"…\",\n        \"value\": null\n      }\n    ],\n    \"conjunction\": \"…\",\n    \"groups\": [\n      {\n        \"conditions\": [\n          {\n            \"fieldId\": null,\n            \"operator\": null,\n            \"value\": null\n          }\n        ],\n        \"conjunction\": \"…\",\n        \"groups\": [\n          {\n            \"conditions\": null,\n            \"conjunction\": null,\n            \"groups\": null,\n            \"hasCriteria\": null\n          }\n        ],\n        \"hasCriteria\": true\n      }\n    ],\n    \"hasCriteria\": true\n  },\n  \"groupFieldId\": \"…\",\n  \"page\": 1,\n  \"pageSize\": 1,\n  \"sort\": [\n    {\n      \"descending\": true,\n      \"fieldId\": \"…\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}}},{"name":"GET /api/v1/office/tables/{tableId}/records/{recordId}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/records/:recordId","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","records",":recordId"],"query":[],"variable":[{"key":"tableId","value":""},{"key":"recordId","value":""}]},"description":"Lấy chi tiết record\n\nScope: office.base.record.view"}},{"name":"PUT /api/v1/office/tables/{tableId}/records/{recordId}","request":{"method":"PUT","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/records/:recordId","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","records",":recordId"],"query":[],"variable":[{"key":"tableId","value":""},{"key":"recordId","value":""}]},"description":"Cập nhật record (merge mặc định; replace=true để ghi đè)\n\nScope: office.base.record.manage","body":{"mode":"raw","raw":"{\n  \"data\": null,\n  \"expectedValues\": null,\n  \"replace\": true\n}","options":{"raw":{"language":"json"}}}}},{"name":"GET /api/v1/office/tables/{tableId}/records/{recordId}/history","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/records/:recordId/history","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","records",":recordId","history"],"query":[{"key":"limit","value":"","disabled":true}],"variable":[{"key":"tableId","value":""},{"key":"recordId","value":""}]},"description":"Lịch sử sửa của record, tách theo từng ô (đã lọc theo quyền cột)\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/tables/{tableId}/trash","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/trash","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","trash"],"query":[{"key":"page","value":"","disabled":true},{"key":"pageSize","value":"","disabled":true}],"variable":[{"key":"tableId","value":""}]},"description":"Thùng rác — record đã xoá mềm của bảng (phân trang)\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/tables/{tableId}/views","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/views","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","views"],"query":[],"variable":[{"key":"tableId","value":""}]},"description":"Liệt kê view của table\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/tables/{tableId}/views/{viewId}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/views/:viewId","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","views",":viewId"],"query":[],"variable":[{"key":"tableId","value":""},{"key":"viewId","value":""}]},"description":"Lấy chi tiết view\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/tables/{tableId}/views/{viewId}/calendar-data","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/views/:viewId/calendar-data","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","views",":viewId","calendar-data"],"query":[{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true}],"variable":[{"key":"tableId","value":""},{"key":"viewId","value":""}]},"description":"Record trong khoảng ngày của view kiểu Calendar\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/tables/{tableId}/views/{viewId}/chart-data","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tables/:tableId/views/:viewId/chart-data","host":["{{baseUrl}}"],"path":["api","v1","office","tables",":tableId","views",":viewId","chart-data"],"query":[],"variable":[{"key":"tableId","value":""},{"key":"viewId","value":""}]},"description":"Dữ liệu đã gộp của view kiểu Chart\n\nScope: office.base.record.view"}},{"name":"GET /api/v1/office/tasks/monitor","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tasks/monitor","host":["{{baseUrl}}"],"path":["api","v1","office","tasks","monitor"],"query":[{"key":"scope","value":"","disabled":true},{"key":"taskListId","value":"","disabled":true}],"variable":[]},"description":"Màn Theo dõi: sáu ô số liệu + bảng toàn đội + việc của từng người\n\nScope: office.task.view"}},{"name":"GET /api/v1/office/tasks/workload","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/tasks/workload","host":["{{baseUrl}}"],"path":["api","v1","office","tasks","workload"],"query":[{"key":"taskListId","value":"","disabled":true},{"key":"listGroupId","value":"","disabled":true}],"variable":[]},"description":"Khối lượng theo người\n\nScope: office.task.view"}},{"name":"GET /api/v1/office/views/{viewId}/location","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/office/views/:viewId/location","host":["{{baseUrl}}"],"path":["api","v1","office","views",":viewId","location"],"query":[],"variable":[{"key":"viewId","value":""}]},"description":"Lần ngược từ mã khung nhìn lên bảng và ứng dụng chứa nó\n\nScope: office.base.record.view"}}]},{"name":"Reports","item":[{"name":"GET /api/v1/reports/catalog","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/reports/catalog","host":["{{baseUrl}}"],"path":["api","v1","reports","catalog"],"query":[],"variable":[]},"description":"Danh mục báo cáo kèm số khối người xem được thấy\n\nScope: report.view"}},{"name":"GET /api/v1/reports/exports/{id}","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/reports/exports/:id","host":["{{baseUrl}}"],"path":["api","v1","reports","exports",":id"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Trạng thái một lượt xuất: pending · running · completed · failed\n\nScope: report.export"}},{"name":"GET /api/v1/reports/exports/{id}/file","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/reports/exports/:id/file","host":["{{baseUrl}}"],"path":["api","v1","reports","exports",":id","file"],"query":[],"variable":[{"key":"id","value":""}]},"description":"Tải tệp đã xuất (404 khi quá 24 giờ)\n\nScope: report.export"}},{"name":"GET /api/v1/reports/labor-cost","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/reports/labor-cost","host":["{{baseUrl}}"],"path":["api","v1","reports","labor-cost"],"query":[{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true},{"key":"parcel_id","value":"","disabled":true},{"key":"season_id","value":"","disabled":true}],"variable":[]},"description":"Chi phí nhân công theo thửa / mùa vụ\n\nScope: report.view"}},{"name":"GET /api/v1/reports/query","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/reports/query","host":["{{baseUrl}}"],"path":["api","v1","reports","query"],"query":[{"key":"code","value":"","disabled":true},{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true},{"key":"grain","value":"","disabled":true},{"key":"compare","value":"","disabled":true},{"key":"includeSample","value":"","disabled":true}],"variable":[]},"description":"Chạy báo cáo bằng GET; thiếu to = hôm nay UTC+7, thiếu from = to - 29 ngày\n\nScope: report.view"}},{"name":"GET /api/v1/reports/trace","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/reports/trace","host":["{{baseUrl}}"],"path":["api","v1","reports","trace"],"query":[{"key":"kind","value":"","disabled":true},{"key":"id","value":"","disabled":true},{"key":"key","value":"","disabled":true},{"key":"depth","value":"","disabled":true}],"variable":[]},"description":"Truy xuất ngược nhiều tầng từ một nút (phiếu thu hoạch, phiếu khoán, chứng từ, phiếu lương, phiếu bán…)\n\nScope: report.view"}}]}]}