http://localhost:8000/api/v1
Get farm details by farm ID or user ID
farm_id
Farm ID
user_id
User ID (or 'me' for current user)
Farm details retrieved successfully
name
opening_hours
override_active
override_expires_at
status
timezone
Insert a new farm with the provided details
note
Farm created successfully
data
errors
info
request_id
Update farm details by farm ID
Farm updated successfully
Retrieves a report of farmer data for a specific farm within a date range.
start_time
Start Date (YYYY-MM-DD)
end_time
End Date (YYYY-MM-DD)
OK
end_date
fruit_yields
start_date
Triggers an export of farmer data for a specific farm within a date range.
Retrieves a report of worker data for a specific farm within a date range.
fruits
Triggers an export of worker data for a specific farm within a date range.
Checks if a farm meets the minimum requirements (opening hours, fruit, and block creation).
Farm requirements fetched successfully
Toggles the open/closed status of a farm
Target status
Farm status updated successfully
Synchronizes local changes with the server and retrieves updates.
changes
device_id
idempotency_key
last_cursor
conflicts
new_cursor