To see ChoiceField choices, click on Choices
In choices you'll see 2 things: "value" and "meaning".
"Meaning" is human-understandable description of value. It's used only for choice field rendering, but doesn't take any part in logic/data processing.
The deployment's switches the app follows. Nothing per user, so it needs no login: an
expired token must not hide them.
Keys:
- subscription_enforced: SUBSCRIPTION_ENFORCED — whether farm writes need the owner's
subscription (402 otherwise). The app shows its paywall and subscription pages only
while this is true.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| AllowAny | Allow any access. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| name | Name |
| custom_report_name | Custom Report Name |
| title | Title |
| description | Description |
| status | Status |
| rows_count | Rows Count |
| exported_rows_count | Exported Rows Count |
| args | Args |
| type | Type |
| start_time | Start Time |
| end_time | End Time |
| user | User |
| errors | Errors |
| is_custom | Is Custom |
| start_date | Start Date |
| end_date | End Date |
| list_size | List Size |
| Value | Meaning |
|---|---|
| Q | Queued |
| E | Exporting... |
| P | Preparing Download... |
| F | Failed |
| D | Click To Download |
| Value | Meaning |
|---|---|
| C | CSV |
| P |
| Value | Meaning |
|---|---|
| 5 | 5 |
| 10 | 10 |
| 20 | 20 |
| 50 | 50 |
| 100 | 100 |
| 300 | 300 |
| 500 | 500 |
| 800 | 800 |
| 1000 | 1000 |
| 10000 | 10000 |
{
"profile":{response fields below},
"token":{..}
}
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| AllowOnlyPostRequests | Custom permission to allow only GET requests. |
| Param name | Description |
|---|---|
| password | Password |
| last_login | Last Login |
| is_superuser | Is Superuser |
| groups | Groups |
| user_permissions | User Permissions |
| username | Username |
| first_name | First Name |
| last_name | Last Name |
| is_staff | Is Staff |
| is_active | Is Active |
| date_joined | Date Joined |
| last_activity | Last Activity |
| role | Role |
| phone | Phone |
| google_profile_image | Google Profile Image |
| confirm_code | Confirm Code |
| reset_code | Reset Code |
| old_password | Old Password |
| changed_password | Changed Password |
| verified | Verified |
| dummy | Dummy |
| available | Available |
| dob | Dob |
| gender | Gender |
| allow_messages_import | Allow Messages Import |
| filter_args | Filter Args |
| novu_added | Novu Added |
| is_a_vet | Is A Vet |
| deletion_scheduled_for | Deletion Scheduled For |
| deletion_reason | Deletion Reason |
| environment | Environment |
| min_subscription_days_remaining | Min Subscription Days Remaining |
| max_subscription_days_remaining | Max Subscription Days Remaining |
| Value | Meaning |
|---|---|
| N | Normal |
| A | Admin |
| C | Customer Care |
| T | Technician |
| Value | Meaning |
|---|---|
| M | Male |
| F | Female |
| RNS | Rather Not Say |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| N | Normal |
| A | Admin |
| C | Customer Care |
| T | Technician |
| Value | Meaning |
|---|---|
| M | Male |
| F | Female |
| RNS | Rather Not Say |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| N | Normal |
| A | Admin |
| C | Customer Care |
| T | Technician |
| Value | Meaning |
|---|---|
| M | Male |
| F | Female |
| RNS | Rather Not Say |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| N | Normal |
| A | Admin |
| C | Customer Care |
| T | Technician |
| Value | Meaning |
|---|---|
| M | Male |
| F | Female |
| RNS | Rather Not Say |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
Every user, for staff marking them test or live in the bomadata admin (?email=, ?environment=).
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| password | Password |
| last_login | Last Login |
| is_superuser | Is Superuser |
| groups | Groups |
| user_permissions | User Permissions |
| username | Username |
| first_name | First Name |
| last_name | Last Name |
| is_staff | Is Staff |
| is_active | Is Active |
| date_joined | Date Joined |
| last_activity | Last Activity |
| role | Role |
| phone | Phone |
| google_profile_image | Google Profile Image |
| confirm_code | Confirm Code |
| reset_code | Reset Code |
| old_password | Old Password |
| changed_password | Changed Password |
| verified | Verified |
| dummy | Dummy |
| available | Available |
| dob | Dob |
| gender | Gender |
| allow_messages_import | Allow Messages Import |
| filter_args | Filter Args |
| novu_added | Novu Added |
| is_a_vet | Is A Vet |
| deletion_scheduled_for | Deletion Scheduled For |
| deletion_reason | Deletion Reason |
| environment | Environment |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
One user: PATCH environment, with update_farms=true to move the farms they own too.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| IsSafariNjemaCustomerCareOrAdmin | A base class from which all permission classes should inherit. |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| N | Normal |
| A | Admin |
| C | Customer Care |
| T | Technician |
| Value | Meaning |
|---|---|
| M | Male |
| F | Female |
| RNS | Rather Not Say |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| N | Normal |
| A | Admin |
| C | Customer Care |
| T | Technician |
| Value | Meaning |
|---|---|
| M | Male |
| F | Female |
| RNS | Rather Not Say |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| N | Normal |
| A | Admin |
| C | Customer Care |
| T | Technician |
| Value | Meaning |
|---|---|
| M | Male |
| F | Female |
| RNS | Rather Not Say |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
Set the veterinarian role of the logged in account.
Expects a POST with JSON: { "is_vet": true }
Social sign-in only applies the role when it creates the account, so this is the
endpoint to use for an existing account. Returns the updated profile.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
Permanently delete the logged in account.
Expects a DELETE (or POST) with JSON: { "confirm": true }
This cascades to the farms the user owns and to their veterinarian profile. Farms
owned by other users that this user only served as a vet are kept - only the link
to them is removed. There is no way to restore the account afterwards; signing in
again creates a brand new one.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
Schedule the logged in account for deletion after a 3 day grace period.
GET returns { "deletion_scheduled_for": <datetime or null> }.
POST with JSON { "confirm": true, "reason": "" } schedules the deletion.
DELETE cancels a scheduled deletion.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
Group My User statistics by:type = id, month_joined, month, year, day, day_of_week, iso_day_of_week, time_of_day
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| password | Password |
| last_login | Last Login |
| is_superuser | Is Superuser |
| groups | Groups |
| user_permissions | User Permissions |
| username | Username |
| first_name | First Name |
| last_name | Last Name |
| is_staff | Is Staff |
| is_active | Is Active |
| date_joined | Date Joined |
| last_activity | Last Activity |
| role | Role |
| phone | Phone |
| google_profile_image | Google Profile Image |
| confirm_code | Confirm Code |
| reset_code | Reset Code |
| old_password | Old Password |
| changed_password | Changed Password |
| verified | Verified |
| dummy | Dummy |
| available | Available |
| dob | Dob |
| gender | Gender |
| allow_messages_import | Allow Messages Import |
| filter_args | Filter Args |
| novu_added | Novu Added |
| is_a_vet | Is A Vet |
| deletion_scheduled_for | Deletion Scheduled For |
| deletion_reason | Deletion Reason |
| environment | Environment |
| min_subscription_days_remaining | Min Subscription Days Remaining |
| max_subscription_days_remaining | Max Subscription Days Remaining |
| date_from | Date From |
| date_to | Date To |
| Value | Meaning |
|---|---|
| N | Normal |
| A | Admin |
| C | Customer Care |
| T | Technician |
| Value | Meaning |
|---|---|
| M | Male |
| F | Female |
| RNS | Rather Not Say |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| N | Normal |
| A | Admin |
| C | Customer Care |
| T | Technician |
| Value | Meaning |
|---|---|
| M | Male |
| F | Female |
| RNS | Rather Not Say |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| password | Password |
| last_login | Last Login |
| is_superuser | Is Superuser |
| groups | Groups |
| user_permissions | User Permissions |
| username | Username |
| first_name | First Name |
| last_name | Last Name |
| is_staff | Is Staff |
| is_active | Is Active |
| date_joined | Date Joined |
| last_activity | Last Activity |
| role | Role |
| phone | Phone |
| google_profile_image | Google Profile Image |
| confirm_code | Confirm Code |
| reset_code | Reset Code |
| old_password | Old Password |
| changed_password | Changed Password |
| verified | Verified |
| dummy | Dummy |
| available | Available |
| dob | Dob |
| gender | Gender |
| allow_messages_import | Allow Messages Import |
| filter_args | Filter Args |
| novu_added | Novu Added |
| is_a_vet | Is A Vet |
| deletion_scheduled_for | Deletion Scheduled For |
| deletion_reason | Deletion Reason |
| environment | Environment |
| min_subscription_days_remaining | Min Subscription Days Remaining |
| max_subscription_days_remaining | Max Subscription Days Remaining |
| date_from | Date From |
| date_to | Date To |
| Value | Meaning |
|---|---|
| N | Normal |
| A | Admin |
| C | Customer Care |
| T | Technician |
| Value | Meaning |
|---|---|
| M | Male |
| F | Female |
| RNS | Rather Not Say |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| N | Normal |
| A | Admin |
| C | Customer Care |
| T | Technician |
| Value | Meaning |
|---|---|
| M | Male |
| F | Female |
| RNS | Rather Not Say |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
API endpoint to recreate the Pro Trial topic in Novu.
This endpoint will:
1. Delete the existing topic (specified by topic_key query param)
2. Find all Pro Trial users
3. Add them to the recreated topic
Query Parameters:
- topic_key (required): The topic key to recreate (e.g., 'trial', 'pro-trial-users')
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| IsSuperUser | A base class from which all permission classes should inherit. |
API endpoint to create a Novu topic based on date, name, and app version.
This endpoint will:
1. Generate a unique topic key from date, name, and app version
2. Delete the existing topic if it exists
3. Create a new topic in Novu
4. Find all users that joined on or before the specified date
5. Add them to the new topic
Request Body:
- date (optional): The date to filter users (format: YYYY-MM-DD, defaults to today)
- app_version (required): The app version for the topic
- name (optional): The name for the topic (defaults to 'feature-release')
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| IsSuperUser | A base class from which all permission classes should inherit. |
API endpoint to trigger a Novu workflow for users or customers.
This endpoint will:
1. Validate the request data
2. Schedule a background task to trigger the workflow (immediately or at specified time)
3. Return immediate confirmation
The background task will:
- If target_ids provided: trigger workflow for each specified target
- If target_ids not provided: filter targets by date and trigger workflow for each
- Wait 10 seconds between each target workflow trigger
Request Body:
- workflow_key (required): The workflow identifier to trigger
- target_type (required): 'users' or 'customers'
- target_ids (optional): List of target IDs to trigger workflow for
- user_ids (optional): List of user IDs (deprecated, use target_ids with target_type='users')
- date (optional): Date filter for targets created before this date (format: YYYY-MM-DD) eg the day the app was published
- payload (optional): Additional payload data for the workflow
- scheduled_at (optional): Schedule the workflow to run at a specific datetime (with timezone info). Defaults to immediate execution.
Customer Notes:
- Customers must belong to the requesting user's account
- Customer IDs are used as integers in the API, but prefixed with "CT" for Novu
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| IsSuperUser | A base class from which all permission classes should inherit. |
| Value | Meaning |
|---|---|
| users | Users |
| customers | Customers |
| Value | Meaning |
|---|---|
| users | Users |
| customers | Customers |
Manage test account for wavvypaydev@gmail.com
- POST: Delete the account if it exists
- GET: Return the current reset code for the account (does not generate a new one)
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
Issue a PowerSync JWT for the authenticated user.
Returns:
- token: Signed JWT for PowerSync authentication
- powersync_url: The PowerSync instance URL
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| M | Mobile |
| T | Tablet |
| Value | Meaning |
|---|---|
| M | Mobile |
| T | Tablet |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| user | User |
| name | Name |
| device_id | Device Id |
| push_token | Push Token |
| device_type | Device Type |
| sms_support | Sms Support |
| is_primary_device | Is Primary Device |
| android_version | Android Version |
| android_version_name | Android Version Name |
| created | Created |
| modified | Modified |
| Value | Meaning |
|---|---|
| M | Mobile |
| T | Tablet |
| Value | Meaning |
|---|---|
| M | Mobile |
| T | Tablet |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| farmer | Farmer |
| vet | Veterinarian |
| other | Other |
| Value | Meaning |
|---|---|
| farmer | Farmer |
| vet | Veterinarian |
| other | Other |
POST is public (the landing-site waitlist form, rate limited per IP).
Re-submitting an email that is already on the list returns the existing
entry with 200 instead of creating a duplicate.
GET stays behind authentication.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| DjangoModelPermissionsOrAnonReadOnly | Similar to DjangoModelPermissions, except that anonymous users are |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| name | Name |
| phone | Phone |
| role | Role |
| message | Message |
| source | Source |
| Value | Meaning |
|---|---|
| farmer | Farmer |
| vet | Veterinarian |
| other | Other |
| Value | Meaning |
|---|---|
| farmer | Farmer |
| vet | Veterinarian |
| other | Other |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| latitude | Latitude |
| longitude | Longitude |
| id | Id |
| name | Name |
| owner | Owner |
| phone | Phone |
| contact_name | Contact Name |
| currency | Currency |
| environment | Environment |
| activity_logging_enabled | Activity Logging Enabled |
| enable_milk_edit | Enable Milk Edit |
| allow_only_scale_milk | Allow Only Scale Milk |
| allow_extra_buckets | Allow Extra Buckets |
| date_from | Date From |
| date_to | Date To |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| latitude | Latitude |
| longitude | Longitude |
| id | Id |
| name | Name |
| owner | Owner |
| phone | Phone |
| contact_name | Contact Name |
| currency | Currency |
| environment | Environment |
| activity_logging_enabled | Activity Logging Enabled |
| enable_milk_edit | Enable Milk Edit |
| allow_only_scale_milk | Allow Only Scale Milk |
| allow_extra_buckets | Allow Extra Buckets |
| date_from | Date From |
| date_to | Date To |
Every farm, for staff filtering the admin stats (?name=
Kept apart from ListCreateFarmsAPIView so the app's own farm list stays scoped to the user.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| latitude | Latitude |
| longitude | Longitude |
| id | Id |
| name | Name |
| owner | Owner |
| phone | Phone |
| contact_name | Contact Name |
| currency | Currency |
| environment | Environment |
| activity_logging_enabled | Activity Logging Enabled |
| enable_milk_edit | Enable Milk Edit |
| allow_only_scale_milk | Allow Only Scale Milk |
| allow_extra_buckets | Allow Extra Buckets |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
Any farm, for staff marking it test or live in the bomadata admin.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| latitude | Latitude |
| longitude | Longitude |
| id | Id |
| name | Name |
| owner | Owner |
| phone | Phone |
| contact_name | Contact Name |
| currency | Currency |
| environment | Environment |
| activity_logging_enabled | Activity Logging Enabled |
| enable_milk_edit | Enable Milk Edit |
| allow_only_scale_milk | Allow Only Scale Milk |
| allow_extra_buckets | Allow Extra Buckets |
| near | Near |
| radius_km | Radius Km |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
GET/POST farms/<pk>/livestock/ - only on a farm the user may read.
The library's parent lookup only checks the farm exists, so it is replaced
with one that also requires access (owner, accepted member, active vet), and
404s otherwise - the same answer as for a farm that does not exist.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| breed | Breed |
| sire | Sire |
| dam | Dam |
| tag_number | Tag Number |
| name | Name |
| gender | Gender |
| date_of_birth | Date Of Birth |
| date_of_entry | Date Of Entry |
| acquisition_type | Acquisition Type |
| acquisition_details | Acquisition Details |
| is_active | Is Active |
| stage | Stage |
| health_state | Health State |
| production_state | Production State |
| current_status | Current Status |
| status_since_date | Status Since Date |
| weight_kg | Weight Kg |
| notes | Notes |
| has_nfc_tag | Has Nfc Tag |
| nfc_tagged_at | Nfc Tagged At |
| created_at | Created At |
| updated_at | Updated At |
| lifecycle_initialized | Lifecycle Initialized |
| initialized_at | Initialized At |
| Value | Meaning |
|---|---|
| male | Male |
| female | Female |
| Value | Meaning |
|---|---|
| born | Born on Farm |
| purchased | Purchased |
| other | Other |
| Value | Meaning |
|---|---|
| calf | Calf |
| heifer | Heifer |
| cow | Cow |
| bull | Bull |
| steer | Steer |
| Value | Meaning |
|---|---|
| healthy | Healthy |
| sick | Sick |
| dead | Dead |
| Value | Meaning |
|---|---|
| not_yet | Not yet |
| milking | Milking |
| dry | Dry |
| Value | Meaning |
|---|---|
| male | Male |
| female | Female |
| Value | Meaning |
|---|---|
| born | Born on Farm |
| purchased | Purchased |
| other | Other |
| Value | Meaning |
|---|---|
| calf | Calf |
| heifer | Heifer |
| cow | Cow |
| bull | Bull |
| steer | Steer |
| Value | Meaning |
|---|---|
| healthy | Healthy |
| sick | Sick |
| dead | Dead |
| Value | Meaning |
|---|---|
| not_yet | Not yet |
| milking | Milking |
| dry | Dry |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| Dairy | Dairy |
| Beef | Beef |
| Dual-purpose | Dual-purpose |
| Value | Meaning |
|---|---|
| cattle | Cattle |
| goat | Goat |
| pigs | Pigs |
| poultry | Poultry |
| camels | Camels |
| rabbits | Rabbits |
| fish | Fish |
| donkeys | Donkeys |
| pets | Pets |
| Value | Meaning |
|---|---|
| Dairy | Dairy |
| Beef | Beef |
| Dual-purpose | Dual-purpose |
| Value | Meaning |
|---|---|
| cattle | Cattle |
| goat | Goat |
| pigs | Pigs |
| poultry | Poultry |
| camels | Camels |
| rabbits | Rabbits |
| fish | Fish |
| donkeys | Donkeys |
| pets | Pets |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| name | Name |
| breed_type | Breed Type |
| livestock_category | Livestock Category |
| description | Description |
| origin_country | Origin Country |
| average_milk_yield | Average Milk Yield |
| average_weight | Average Weight |
| is_active | Is Active |
| process_definition | Process Definition |
| Value | Meaning |
|---|---|
| Dairy | Dairy |
| Beef | Beef |
| Dual-purpose | Dual-purpose |
| Value | Meaning |
|---|---|
| cattle | Cattle |
| goat | Goat |
| pigs | Pigs |
| poultry | Poultry |
| camels | Camels |
| rabbits | Rabbits |
| fish | Fish |
| donkeys | Donkeys |
| pets | Pets |
| Value | Meaning |
|---|---|
| Dairy | Dairy |
| Beef | Beef |
| Dual-purpose | Dual-purpose |
| Value | Meaning |
|---|---|
| cattle | Cattle |
| goat | Goat |
| pigs | Pigs |
| poultry | Poultry |
| camels | Camels |
| rabbits | Rabbits |
| fish | Fish |
| donkeys | Donkeys |
| pets | Pets |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| breed | Breed |
| sire | Sire |
| dam | Dam |
| tag_number | Tag Number |
| name | Name |
| gender | Gender |
| date_of_birth | Date Of Birth |
| date_of_entry | Date Of Entry |
| acquisition_type | Acquisition Type |
| acquisition_details | Acquisition Details |
| is_active | Is Active |
| stage | Stage |
| health_state | Health State |
| production_state | Production State |
| current_status | Current Status |
| status_since_date | Status Since Date |
| weight_kg | Weight Kg |
| notes | Notes |
| has_nfc_tag | Has Nfc Tag |
| nfc_tagged_at | Nfc Tagged At |
| created_at | Created At |
| updated_at | Updated At |
| lifecycle_initialized | Lifecycle Initialized |
| initialized_at | Initialized At |
| Value | Meaning |
|---|---|
| male | Male |
| female | Female |
| Value | Meaning |
|---|---|
| born | Born on Farm |
| purchased | Purchased |
| other | Other |
| Value | Meaning |
|---|---|
| calf | Calf |
| heifer | Heifer |
| cow | Cow |
| bull | Bull |
| steer | Steer |
| Value | Meaning |
|---|---|
| healthy | Healthy |
| sick | Sick |
| dead | Dead |
| Value | Meaning |
|---|---|
| not_yet | Not yet |
| milking | Milking |
| dry | Dry |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| breed | Breed |
| sire | Sire |
| dam | Dam |
| tag_number | Tag Number |
| name | Name |
| gender | Gender |
| date_of_birth | Date Of Birth |
| date_of_entry | Date Of Entry |
| acquisition_type | Acquisition Type |
| acquisition_details | Acquisition Details |
| is_active | Is Active |
| stage | Stage |
| health_state | Health State |
| production_state | Production State |
| current_status | Current Status |
| status_since_date | Status Since Date |
| weight_kg | Weight Kg |
| notes | Notes |
| has_nfc_tag | Has Nfc Tag |
| nfc_tagged_at | Nfc Tagged At |
| created_at | Created At |
| updated_at | Updated At |
| lifecycle_initialized | Lifecycle Initialized |
| initialized_at | Initialized At |
| environment | Environment |
| date_from | Date From |
| date_to | Date To |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| breed | Breed |
| sire | Sire |
| dam | Dam |
| tag_number | Tag Number |
| name | Name |
| gender | Gender |
| date_of_birth | Date Of Birth |
| date_of_entry | Date Of Entry |
| acquisition_type | Acquisition Type |
| acquisition_details | Acquisition Details |
| is_active | Is Active |
| stage | Stage |
| health_state | Health State |
| production_state | Production State |
| current_status | Current Status |
| status_since_date | Status Since Date |
| weight_kg | Weight Kg |
| notes | Notes |
| has_nfc_tag | Has Nfc Tag |
| nfc_tagged_at | Nfc Tagged At |
| created_at | Created At |
| updated_at | Updated At |
| lifecycle_initialized | Lifecycle Initialized |
| initialized_at | Initialized At |
| environment | Environment |
| date_from | Date From |
| date_to | Date To |
Resolve the code read off an NFC tag to the animal it belongs to.
Deliberately unscoped: a scanned tag may belong to any farm on the
platform, so this searches all livestock rather than the
farm_access_filter()'d rows the other views use. 404 means the code is
not registered on BomaData.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| male | Male |
| female | Female |
| Value | Meaning |
|---|---|
| born | Born on Farm |
| purchased | Purchased |
| other | Other |
| Value | Meaning |
|---|---|
| calf | Calf |
| heifer | Heifer |
| cow | Cow |
| bull | Bull |
| steer | Steer |
| Value | Meaning |
|---|---|
| healthy | Healthy |
| sick | Sick |
| dead | Dead |
| Value | Meaning |
|---|---|
| not_yet | Not yet |
| milking | Milking |
| dry | Dry |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| male | Male |
| female | Female |
| Value | Meaning |
|---|---|
| born | Born on Farm |
| purchased | Purchased |
| other | Other |
| Value | Meaning |
|---|---|
| calf | Calf |
| heifer | Heifer |
| cow | Cow |
| bull | Bull |
| steer | Steer |
| Value | Meaning |
|---|---|
| healthy | Healthy |
| sick | Sick |
| dead | Dead |
| Value | Meaning |
|---|---|
| not_yet | Not yet |
| milking | Milking |
| dry | Dry |
| Value | Meaning |
|---|---|
| male | Male |
| female | Female |
| Value | Meaning |
|---|---|
| born | Born on Farm |
| purchased | Purchased |
| other | Other |
| Value | Meaning |
|---|---|
| calf | Calf |
| heifer | Heifer |
| cow | Cow |
| bull | Bull |
| steer | Steer |
| Value | Meaning |
|---|---|
| healthy | Healthy |
| sick | Sick |
| dead | Dead |
| Value | Meaning |
|---|---|
| not_yet | Not yet |
| milking | Milking |
| dry | Dry |
POST the muzzle frame and the embedding derived from it, in one request.
Mounted under the animal: `POST /api/v1/livestocks/<uuid>/muzzle-enroll/`.
The alternative is two calls - create the image, read its id back, then create
the template pointing at it - where any failure in between leaves either an
orphan image or a template with a null `source_image`. The second looks
harmless right up until an encoder version bump, when it turns out that
template cannot be regenerated. Doing both writes here makes the link a
server-side invariant instead of client discipline.
`image` takes either a multipart file upload or a base64 string. Enrolment
must name its encoder (`model_trial` + `model_version`), and it retires the
animal's other active templates *of that same version* - a v7 and a v8
template coexist on purpose so a version rollout can be staged.
Not restricted to vets: a farm owner enrolling their own animal is legitimate.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| breeding | Breeding |
| health | Health |
| management | Management |
| production | Production |
| other | Other |
| Value | Meaning |
|---|---|
| breeding | Breeding |
| health | Health |
| management | Management |
| production | Production |
| other | Other |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| name | Name |
| display_name | Display Name |
| description | Description |
| category | Category |
| slug | Slug |
| icon | Icon |
| color | Color |
| requires_outcome | Requires Outcome |
| is_system | Is System |
| is_active | Is Active |
| farm | Farm |
| Value | Meaning |
|---|---|
| breeding | Breeding |
| health | Health |
| management | Management |
| production | Production |
| other | Other |
| Value | Meaning |
|---|---|
| breeding | Breeding |
| health | Health |
| management | Management |
| production | Production |
| other | Other |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| outcome_code | Use Outcome Code |
| outcome_value | Use Recorded Field Value |
| event_date | Use Event Date |
| increment | Increment Current Value |
| Value | Meaning |
|---|---|
| outcome_code | Use Outcome Code |
| outcome_value | Use Recorded Field Value |
| event_date | Use Event Date |
| increment | Increment Current Value |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| event_type | Event Type |
| code | Code |
| display_name | Display Name |
| description | Description |
| is_success | Is Success |
| color | Color |
| order | Order |
| is_active | Is Active |
| updates_field | Updates Field |
| update_source | Update Source |
| default_value | Default Value |
| to_state | To State |
| Value | Meaning |
|---|---|
| outcome_code | Use Outcome Code |
| outcome_value | Use Recorded Field Value |
| event_date | Use Event Date |
| increment | Increment Current Value |
| Value | Meaning |
|---|---|
| outcome_code | Use Outcome Code |
| outcome_value | Use Recorded Field Value |
| event_date | Use Event Date |
| increment | Increment Current Value |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| text | Text |
| number | Number |
| date | Date |
| boolean | Yes/No |
| choice | Choice |
| Value | Meaning |
|---|---|
| text | Text |
| number | Number |
| date | Date |
| boolean | Yes/No |
| choice | Choice |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| outcome_type | Outcome Type |
| name | Name |
| label | Label |
| input_type | Input Type |
| is_required | Is Required |
| order | Order |
| validation_min | Validation Min |
| validation_max | Validation Max |
| maps_to_subject_field | Maps To Subject Field |
| is_active | Is Active |
| Value | Meaning |
|---|---|
| text | Text |
| number | Number |
| date | Date |
| boolean | Yes/No |
| choice | Choice |
| Value | Meaning |
|---|---|
| text | Text |
| number | Number |
| date | Date |
| boolean | Yes/No |
| choice | Choice |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| event | Event |
| outcome_type | Outcome Type |
| recorded_at | Recorded At |
| notes | Notes |
| recorded_from | Recorded From |
| recorded_to | Recorded To |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
Read-only on purpose.
Values are written through the EventOutcome serializer, which is where
they are checked against their outcome type's declared fields. A direct
write endpoint here would be a way to bypass that validation.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| outcome | Outcome |
| field | Field |
| value_text | Value Text |
| value_number | Value Number |
| value_date | Value Date |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| pending | Pending |
| completed | Completed |
| cancelled | Cancelled |
| overdue | Overdue |
| Value | Meaning |
|---|---|
| pending | Pending |
| completed | Completed |
| cancelled | Cancelled |
| overdue | Overdue |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| livestock | Livestock |
| crop_cycle | Crop Cycle |
| event_type | Event Type |
| parent_event | Parent Event |
| trigger | Trigger |
| scheduled_date | Scheduled Date |
| event_date | Event Date |
| completed_at | Completed At |
| status | Status |
| initialized | Initialized |
| notes | Notes |
| is_recurring | Is Recurring |
| recurrence_count | Recurrence Count |
| recurrence_parent | Recurrence Parent |
| scheduled_date_from | Scheduled Date From |
| scheduled_date_to | Scheduled Date To |
| Value | Meaning |
|---|---|
| pending | Pending |
| completed | Completed |
| cancelled | Cancelled |
| overdue | Overdue |
| Value | Meaning |
|---|---|
| pending | Pending |
| completed | Completed |
| cancelled | Cancelled |
| overdue | Overdue |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| push | Push Notification |
| sms | SMS |
| webhook | Webhook |
| Value | Meaning |
|---|---|
| push | Push Notification |
| sms | SMS |
| webhook | Webhook |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| event | Event |
| reminder_date | Reminder Date |
| notification_type | Notification Type |
| sent | Sent |
| sent_at | Sent At |
| error_message | Error Message |
| webhook_url | Webhook Url |
| Value | Meaning |
|---|---|
| push | Push Notification |
| sms | SMS |
| webhook | Webhook |
| Value | Meaning |
|---|---|
| push | Push Notification |
| sms | SMS |
| webhook | Webhook |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| date | Date |
| livestock | Livestock |
| animal_count | Animal Count |
| entry_method | Entry Method |
| morning_amount | Morning Amount |
| mid_day_amount | Mid Day Amount |
| evening_amount | Evening Amount |
| night_amount | Night Amount |
| whole_day_amount | Whole Day Amount |
| quality_grade | Quality Grade |
| notes | Notes |
| environment | Environment |
| mon_mid_eve_done | Mon Mid Eve Done |
| session_only | Session Only |
| date_from | Date From |
| date_to | Date To |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| date | Date |
| livestock | Livestock |
| animal_count | Animal Count |
| entry_method | Entry Method |
| morning_amount | Morning Amount |
| mid_day_amount | Mid Day Amount |
| evening_amount | Evening Amount |
| night_amount | Night Amount |
| whole_day_amount | Whole Day Amount |
| quality_grade | Quality Grade |
| notes | Notes |
| environment | Environment |
| mon_mid_eve_done | Mon Mid Eve Done |
| session_only | Session Only |
| date_from | Date From |
| date_to | Date To |
The app's period card for one farm (or one animal with ?livestock=).
total_litres counts every day; the average divides the litres of the counted days
by their number, where a day counts when morning, mid-day and evening all have
milk across that day's records (?full_only=false counts every day). per_cow is the
average over the distinct animals recorded; whole-herd records add no animal.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| date | Date |
| livestock | Livestock |
| animal_count | Animal Count |
| entry_method | Entry Method |
| morning_amount | Morning Amount |
| mid_day_amount | Mid Day Amount |
| evening_amount | Evening Amount |
| night_amount | Night Amount |
| whole_day_amount | Whole Day Amount |
| quality_grade | Quality Grade |
| notes | Notes |
| date_from | Date From |
| date_to | Date To |
One farm's milk, grouped: ?farm= (required), ?date_from=&date_to=, ?livestock=.
day / month / livestock rows as on the staff stats, livestock_day one row per animal
(or whole herd) per day. Every row carries the raw session sums the full-day test
needs and the `<session>_shown` sums the app's session text uses.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| date | Date |
| livestock | Livestock |
| animal_count | Animal Count |
| entry_method | Entry Method |
| morning_amount | Morning Amount |
| mid_day_amount | Mid Day Amount |
| evening_amount | Evening Amount |
| night_amount | Night Amount |
| whole_day_amount | Whole Day Amount |
| quality_grade | Quality Grade |
| notes | Notes |
| date_from | Date From |
| date_to | Date To |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| MilkEditAllowed | Refuse changing or deleting a milk record on a farm with POST is checked too: |
| Value | Meaning |
|---|---|
| manual | Manual |
| scale | Scale |
| Value | Meaning |
|---|---|
| A | Grade A - Premium |
| B | Grade B - Standard |
| C | Grade C - Lower |
| Value | Meaning |
|---|---|
| manual | Manual |
| scale | Scale |
| Value | Meaning |
|---|---|
| A | Grade A - Premium |
| B | Grade B - Standard |
| C | Grade C - Lower |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| MilkEditAllowed | Refuse changing or deleting a milk record on a farm with POST is checked too: |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| date | Date |
| livestock | Livestock |
| animal_count | Animal Count |
| entry_method | Entry Method |
| morning_amount | Morning Amount |
| mid_day_amount | Mid Day Amount |
| evening_amount | Evening Amount |
| night_amount | Night Amount |
| whole_day_amount | Whole Day Amount |
| quality_grade | Quality Grade |
| notes | Notes |
| Value | Meaning |
|---|---|
| manual | Manual |
| scale | Scale |
| Value | Meaning |
|---|---|
| A | Grade A - Premium |
| B | Grade B - Standard |
| C | Grade C - Lower |
| Value | Meaning |
|---|---|
| manual | Manual |
| scale | Scale |
| Value | Meaning |
|---|---|
| A | Grade A - Premium |
| B | Grade B - Standard |
| C | Grade C - Lower |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| WHOLESALE | Wholesale Sale |
| RETAIL | Retail Sale |
| DIRECT | Direct Consumer Sale |
| CALVES | Fed to Calves |
| INTERNAL | Internal Use |
| SPOILED | Spoiled/Expired |
| SPILLED | Spilled/Accident |
| CHEESE | Cheese Making |
| BUTTER | Butter Making |
| YOGURT | Yogurt Making |
| Value | Meaning |
|---|---|
| CASH | Cash |
| MOBILE_MONEY | Mobile Money |
| BANK_TRANSFER | Bank Transfer |
| CHECK | Check |
| CREDIT | Credit/Later |
| Value | Meaning |
|---|---|
| PAID | Fully Paid |
| PARTIAL | Partially Paid |
| UNPAID | Unpaid |
| N/A | Not Applicable |
| Value | Meaning |
|---|---|
| WHOLESALE | Wholesale Sale |
| RETAIL | Retail Sale |
| DIRECT | Direct Consumer Sale |
| CALVES | Fed to Calves |
| INTERNAL | Internal Use |
| SPOILED | Spoiled/Expired |
| SPILLED | Spilled/Accident |
| CHEESE | Cheese Making |
| BUTTER | Butter Making |
| YOGURT | Yogurt Making |
| Value | Meaning |
|---|---|
| CASH | Cash |
| MOBILE_MONEY | Mobile Money |
| BANK_TRANSFER | Bank Transfer |
| CHECK | Check |
| CREDIT | Credit/Later |
| Value | Meaning |
|---|---|
| PAID | Fully Paid |
| PARTIAL | Partially Paid |
| UNPAID | Unpaid |
| N/A | Not Applicable |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| date | Date |
| usage_type | Usage Type |
| amount | Amount |
| price_per_liter | Price Per Liter |
| buyer | Buyer |
| payment_method | Payment Method |
| payment_status | Payment Status |
| amount_paid | Amount Paid |
| notes | Notes |
| date_from | Date From |
| date_to | Date To |
| Value | Meaning |
|---|---|
| WHOLESALE | Wholesale Sale |
| RETAIL | Retail Sale |
| DIRECT | Direct Consumer Sale |
| CALVES | Fed to Calves |
| INTERNAL | Internal Use |
| SPOILED | Spoiled/Expired |
| SPILLED | Spilled/Accident |
| CHEESE | Cheese Making |
| BUTTER | Butter Making |
| YOGURT | Yogurt Making |
| Value | Meaning |
|---|---|
| CASH | Cash |
| MOBILE_MONEY | Mobile Money |
| BANK_TRANSFER | Bank Transfer |
| CHECK | Check |
| CREDIT | Credit/Later |
| Value | Meaning |
|---|---|
| PAID | Fully Paid |
| PARTIAL | Partially Paid |
| UNPAID | Unpaid |
| N/A | Not Applicable |
| Value | Meaning |
|---|---|
| WHOLESALE | Wholesale Sale |
| RETAIL | Retail Sale |
| DIRECT | Direct Consumer Sale |
| CALVES | Fed to Calves |
| INTERNAL | Internal Use |
| SPOILED | Spoiled/Expired |
| SPILLED | Spilled/Accident |
| CHEESE | Cheese Making |
| BUTTER | Butter Making |
| YOGURT | Yogurt Making |
| Value | Meaning |
|---|---|
| CASH | Cash |
| MOBILE_MONEY | Mobile Money |
| BANK_TRANSFER | Bank Transfer |
| CHECK | Check |
| CREDIT | Credit/Later |
| Value | Meaning |
|---|---|
| PAID | Fully Paid |
| PARTIAL | Partially Paid |
| UNPAID | Unpaid |
| N/A | Not Applicable |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| WHOLESALE | Wholesale Buyer |
| RETAIL | Retail Buyer |
| DIRECT | Direct Consumer |
| PROCESSOR | Processor |
| Value | Meaning |
|---|---|
| CASH | Cash on Delivery |
| WEEKLY | Weekly Payment |
| BIWEEKLY | Bi-weekly Payment |
| MONTHLY | Monthly Payment |
| QUARTERLY | Quarterly Payment |
| CUSTOM | Custom Terms |
| Value | Meaning |
|---|---|
| WHOLESALE | Wholesale Buyer |
| RETAIL | Retail Buyer |
| DIRECT | Direct Consumer |
| PROCESSOR | Processor |
| Value | Meaning |
|---|---|
| CASH | Cash on Delivery |
| WEEKLY | Weekly Payment |
| BIWEEKLY | Bi-weekly Payment |
| MONTHLY | Monthly Payment |
| QUARTERLY | Quarterly Payment |
| CUSTOM | Custom Terms |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| name | Name |
| contact_info | Contact Info |
| buyer_type | Buyer Type |
| credit_limit | Credit Limit |
| is_active | Is Active |
| notes | Notes |
| default_price_per_litre | Default Price Per Litre |
| payment_terms_days | Payment Terms Days |
| payment_terms | Payment Terms |
| Value | Meaning |
|---|---|
| WHOLESALE | Wholesale Buyer |
| RETAIL | Retail Buyer |
| DIRECT | Direct Consumer |
| PROCESSOR | Processor |
| Value | Meaning |
|---|---|
| CASH | Cash on Delivery |
| WEEKLY | Weekly Payment |
| BIWEEKLY | Bi-weekly Payment |
| MONTHLY | Monthly Payment |
| QUARTERLY | Quarterly Payment |
| CUSTOM | Custom Terms |
| Value | Meaning |
|---|---|
| WHOLESALE | Wholesale Buyer |
| RETAIL | Retail Buyer |
| DIRECT | Direct Consumer |
| PROCESSOR | Processor |
| Value | Meaning |
|---|---|
| CASH | Cash on Delivery |
| WEEKLY | Weekly Payment |
| BIWEEKLY | Bi-weekly Payment |
| MONTHLY | Monthly Payment |
| QUARTERLY | Quarterly Payment |
| CUSTOM | Custom Terms |
POST {"farm": "<uuid>"} - attach the logged-in veterinarian to an existing farm.
The counterpart to `POST /api/v1/muzzle-templates/identify/`: identify names
the farm an unknown animal belongs to, this endpoint gets the vet onto it so
PowerSync starts streaming that farm's livestock, health records and muzzle
templates to their device.
Access is granted immediately - there is no owner approval step. Idempotent:
joining a farm twice returns the existing link rather than erroring on the
unique_together, and re-joining a farm the vet left reactivates it.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsVeterinarian | Custom permission to allow only veterinarians. |
GET: List all farms associated with the logged-in veterinarian.
POST: Create a new farm and automatically link the veterinarian to it.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsVeterinarian | Custom permission to allow only veterinarians. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| latitude | Latitude |
| longitude | Longitude |
| id | Id |
| name | Name |
| owner | Owner |
| phone | Phone |
| contact_name | Contact Name |
| currency | Currency |
| environment | Environment |
| activity_logging_enabled | Activity Logging Enabled |
| enable_milk_edit | Enable Milk Edit |
| allow_only_scale_milk | Allow Only Scale Milk |
| allow_extra_buckets | Allow Extra Buckets |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| live | Live |
| test | Test |
GET /api/v1/veterinarians/nearby/?near=<lat>,<lng>[&radius_km=<n>]
The public vet directory: vets who have opted in, nearest first, for a farmer
who does not have one yet.
This view deliberately does NOT apply the tenant `get_queryset()` scoping its
siblings in this module use. That is not a missing filter. Scoping to the
caller's own farms is exactly what ListCreateVeterinariansAPIView already does,
and it would make this endpoint answer "the vets you already have" - the
opposite of the question. Consent is expressed in the data instead
(`is_discoverable`), and exposure is bounded by the projection
(NearbyVeterinarianSerializer, an explicit field list rather than an exclude).
The same trade, and the same reasoning, as IdentifyMuzzleAPIView.
`near` is REQUIRED here, unlike on the list endpoint where it is an optional
filter: a "nearby" route with no point is a full directory dump.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| near | Near |
| radius_km | Radius Km |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| latitude | Latitude |
| longitude | Longitude |
| id | Id |
| user | User |
| name | Name |
| contact_info | Contact Info |
| license_number | License Number |
| specialization | Specialization |
| is_active | Is Active |
| is_discoverable | Is Discoverable |
| notes | Notes |
| currency | Currency |
| near | Near |
| radius_km | Radius Km |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| immunization | Immunization |
| deworming | Deworming |
| treatment | Treatment |
| injury | Injury |
| checkup | Check-up |
| disease | Disease |
| other | Any Other |
| Value | Meaning |
|---|---|
| immunization | Immunization |
| deworming | Deworming |
| treatment | Treatment |
| injury | Injury |
| checkup | Check-up |
| disease | Disease |
| other | Any Other |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| livestock | Livestock |
| veterinarian | Veterinarian |
| disease | Disease |
| record_type | Record Type |
| date | Date |
| signs | Signs |
| diagnosis | Diagnosis |
| treatment | Treatment |
| recommendations | Recommendations |
| other_aspects | Other Aspects |
| amount | Amount |
| amount_paid | Amount Paid |
| notes | Notes |
| requires_followup | Requires Followup |
| followup_date | Followup Date |
| date_from | Date From |
| date_to | Date To |
| Value | Meaning |
|---|---|
| immunization | Immunization |
| deworming | Deworming |
| treatment | Treatment |
| injury | Injury |
| checkup | Check-up |
| disease | Disease |
| other | Any Other |
| Value | Meaning |
|---|---|
| immunization | Immunization |
| deworming | Deworming |
| treatment | Treatment |
| injury | Injury |
| checkup | Check-up |
| disease | Disease |
| other | Any Other |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| veterinarian | Veterinarian |
| is_active | Is Active |
POST {"action": "accept"|"decline"} - answer an invitation addressed to you.
The counterpart to the owner's POST /api/v1/farm-members/. Accepting stamps
the account onto the row, which is what both the REST scoping and the
PowerSync member queries match on.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| pending | Pending |
| accepted | Accepted |
| declined | Declined |
| revoked | Revoked |
The owner changes permissions (or the legacy can_view_finances) here;
DELETE revokes (or leaves).
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| pending | Pending |
| accepted | Accepted |
| declined | Declined |
| revoked | Revoked |
GET lists memberships you can see; POST invites someone to your farm.
Filter the list with ?farm= or ?status= - MyDjangoFilterBackend already
exposes every model field, so a client reads its own pending invitations as
?status=pending rather than from a separate endpoint.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| user | User |
| invited_by | Invited By |
| status | Status |
| can_view_finances | Can View Finances |
| responded | Responded |
| Value | Meaning |
|---|---|
| pending | Pending |
| accepted | Accepted |
| declined | Declined |
| revoked | Revoked |
DELETE removes one grant (owner only).
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
GET grants you can see; POST {member, permission} grants one (owner only).
Granting one already held answers with the existing row, so a device
re-uploading a queued grant does not fail.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| member | Member |
| permission | Permission |
| farm | Farm |
| active | Active |
The permissions an owner can grant. Read-only: the catalogue is staff data.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
POST, unauthenticated: a Pi announces itself and gets a code to show.
Every call is a new kiosk. A Pi keeps its id and secret and only comes back
here when it has lost them (or was unpaired), so there is nothing to upsert
on - and device_id is not a secret, so keying on it would let anyone reset
someone else's pairing. Pending kiosks left unclaimed for a day are pruned.
| Type | Description |
|---|---|
| AllowAny | Allow any access. |
GET, polled by the Pi with X-Kiosk-Id and X-Kiosk-Secret.
pending -> the code and PIN to show, renewed once they expire.
claimed -> the kiosk user's OAuth token, exactly once, then just the tare
and name, which the owner may change from their phone.
X-Kiosk-Build, when sent, is stored as the build the kiosk runs.
401 -> unknown, wrong secret, or unpaired: the Pi registers afresh.
| Type | Description |
|---|---|
| AllowAny | Allow any access. |
POST, by a farm owner: makes a pending kiosk theirs, for one farm.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
POST, by the kiosk itself (its id and secret, as on the status poll): a factory reset.
The same revoke as the owner's unpair, so the owner's list does not keep a dead row. By secret
rather than the kiosk's OAuth token, so a reset still works once that token has gone stale.
| Type | Description |
|---|---|
| AllowAny | Allow any access. |
The owner renames a kiosk, sets its tare, or unpairs it (DELETE).
This is the detail endpoint the phone's PowerSync uploads go to, so DELETE
is what a local row delete becomes.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| pending | Pending |
| claimed | Claimed |
| revoked | Revoked |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| name | Name |
| device_id | Device Id |
| protocol_id | Protocol Id |
| credential | Credential |
| live_credential | Live Credential |
| is_active | Is Active |
GET, open: the fleet's active release. For provisioning a kiosk image, which has no
signed-in user yet; it reveals nothing the media URL does not already.
| Type | Description |
|---|---|
| AllowAny | Allow any access. |
Staff edit changes, or PATCH is_active: true on an earlier release to roll the
whole fleet back to it.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| StaffWrites | Anyone signed in may read the list; only staff publish, edit or activate. |
GET the releases, newest first. POST (staff, multipart) bundle, version_label,
changes and optionally activate=false; the build number, url, sha256 and size
are filled in by the server.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| StaffWrites | Anyone signed in may read the list; only staff publish, edit or activate. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| version_label | Version Label |
| build_number | Build Number |
| changes | Changes |
| url | Url |
| sha256 | Sha256 |
| size | Size |
| is_active | Is Active |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| ledger | Ledger |
| farm | Farm |
| veterinarian | Veterinarian |
| livestock | Livestock |
| health_record | Health Record |
| milk_usage | Milk Usage |
| project | Project |
| transaction_type | Transaction Type |
| category | Category |
| amount | Amount |
| amount_paid | Amount Paid |
| currency | Currency |
| date | Date |
| description | Description |
| reference | Reference |
| recorded_by | Recorded By |
| payment_status | Payment Status |
| payment_date | Payment Date |
| environment | Environment |
| date_from | Date From |
| date_to | Date To |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsStaffUser | Staff (or superusers) only: the usage stats behind the bomadata admin dashboard. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| ledger | Ledger |
| farm | Farm |
| veterinarian | Veterinarian |
| livestock | Livestock |
| health_record | Health Record |
| milk_usage | Milk Usage |
| project | Project |
| transaction_type | Transaction Type |
| category | Category |
| amount | Amount |
| amount_paid | Amount Paid |
| currency | Currency |
| date | Date |
| description | Description |
| reference | Reference |
| recorded_by | Recorded By |
| payment_status | Payment Status |
| payment_date | Payment Date |
| environment | Environment |
| date_from | Date From |
| date_to | Date To |
Income, expenses and net over ?date_from=&date_to= for one farm, and what buyers owe.
`owed` is all time whatever the dates (positive buyer balances, as the app adds
them), and needs allow_income; it is null when a ?project= is picked.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| ledger | Ledger |
| farm | Farm |
| veterinarian | Veterinarian |
| livestock | Livestock |
| health_record | Health Record |
| milk_usage | Milk Usage |
| project | Project |
| transaction_type | Transaction Type |
| category | Category |
| amount | Amount |
| amount_paid | Amount Paid |
| currency | Currency |
| date | Date |
| description | Description |
| reference | Reference |
| recorded_by | Recorded By |
| payment_status | Payment Status |
| payment_date | Payment Date |
| date_from | Date From |
| date_to | Date To |
One farm's books grouped by month, day or category: ?farm= (required), ?date_from=&date_to=
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| ledger | Ledger |
| farm | Farm |
| veterinarian | Veterinarian |
| livestock | Livestock |
| health_record | Health Record |
| milk_usage | Milk Usage |
| project | Project |
| transaction_type | Transaction Type |
| category | Category |
| amount | Amount |
| amount_paid | Amount Paid |
| currency | Currency |
| date | Date |
| description | Description |
| reference | Reference |
| recorded_by | Recorded By |
| payment_status | Payment Status |
| payment_date | Payment Date |
| date_from | Date From |
| date_to | Date To |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| farm | Farm |
| vet | Veterinarian |
| Value | Meaning |
|---|---|
| income | Income |
| expense | Expense |
| Value | Meaning |
|---|---|
| milk_sales | Milk Sales |
| animal_sales | Animal Sales |
| manure_sales | Manure Sales |
| feed | Feed |
| equipment | Equipment |
| wages | Wages |
| medication | Medication |
| transport | Transport |
| veterinary | Veterinary Services |
| consultation | Consultation/Examination |
| surgery | Surgery |
| vaccination | Vaccination Service |
| deworming_service | Deworming Service |
| laboratory | Laboratory Tests |
| diagnostic | Diagnostic Services |
| emergency | Emergency Services |
| castration | Castration/Neutering |
| dental | Dental Care |
| ai_service | AI/Breeding Service |
| hoof_trimming | Hoof Trimming |
| health_certificate | Health Certificate |
| other | Other |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| PAID | Fully Paid |
| UNPAID | Unpaid |
| PENDING | Pending |
| N/A | Not Applicable |
| Value | Meaning |
|---|---|
| farm | Farm |
| vet | Veterinarian |
| Value | Meaning |
|---|---|
| income | Income |
| expense | Expense |
| Value | Meaning |
|---|---|
| milk_sales | Milk Sales |
| animal_sales | Animal Sales |
| manure_sales | Manure Sales |
| feed | Feed |
| equipment | Equipment |
| wages | Wages |
| medication | Medication |
| transport | Transport |
| veterinary | Veterinary Services |
| consultation | Consultation/Examination |
| surgery | Surgery |
| vaccination | Vaccination Service |
| deworming_service | Deworming Service |
| laboratory | Laboratory Tests |
| diagnostic | Diagnostic Services |
| emergency | Emergency Services |
| castration | Castration/Neutering |
| dental | Dental Care |
| ai_service | AI/Breeding Service |
| hoof_trimming | Hoof Trimming |
| health_certificate | Health Certificate |
| other | Other |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| PAID | Fully Paid |
| UNPAID | Unpaid |
| PENDING | Pending |
| N/A | Not Applicable |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| ledger | Ledger |
| farm | Farm |
| veterinarian | Veterinarian |
| livestock | Livestock |
| health_record | Health Record |
| milk_usage | Milk Usage |
| project | Project |
| transaction_type | Transaction Type |
| category | Category |
| amount | Amount |
| amount_paid | Amount Paid |
| currency | Currency |
| date | Date |
| description | Description |
| reference | Reference |
| recorded_by | Recorded By |
| payment_status | Payment Status |
| payment_date | Payment Date |
| date_from | Date From |
| date_to | Date To |
| Value | Meaning |
|---|---|
| farm | Farm |
| vet | Veterinarian |
| Value | Meaning |
|---|---|
| income | Income |
| expense | Expense |
| Value | Meaning |
|---|---|
| milk_sales | Milk Sales |
| animal_sales | Animal Sales |
| manure_sales | Manure Sales |
| feed | Feed |
| equipment | Equipment |
| wages | Wages |
| medication | Medication |
| transport | Transport |
| veterinary | Veterinary Services |
| consultation | Consultation/Examination |
| surgery | Surgery |
| vaccination | Vaccination Service |
| deworming_service | Deworming Service |
| laboratory | Laboratory Tests |
| diagnostic | Diagnostic Services |
| emergency | Emergency Services |
| castration | Castration/Neutering |
| dental | Dental Care |
| ai_service | AI/Breeding Service |
| hoof_trimming | Hoof Trimming |
| health_certificate | Health Certificate |
| other | Other |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| PAID | Fully Paid |
| UNPAID | Unpaid |
| PENDING | Pending |
| N/A | Not Applicable |
| Value | Meaning |
|---|---|
| farm | Farm |
| vet | Veterinarian |
| Value | Meaning |
|---|---|
| income | Income |
| expense | Expense |
| Value | Meaning |
|---|---|
| milk_sales | Milk Sales |
| animal_sales | Animal Sales |
| manure_sales | Manure Sales |
| feed | Feed |
| equipment | Equipment |
| wages | Wages |
| medication | Medication |
| transport | Transport |
| veterinary | Veterinary Services |
| consultation | Consultation/Examination |
| surgery | Surgery |
| vaccination | Vaccination Service |
| deworming_service | Deworming Service |
| laboratory | Laboratory Tests |
| diagnostic | Diagnostic Services |
| emergency | Emergency Services |
| castration | Castration/Neutering |
| dental | Dental Care |
| ai_service | AI/Breeding Service |
| hoof_trimming | Hoof Trimming |
| health_certificate | Health Certificate |
| other | Other |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| PAID | Fully Paid |
| UNPAID | Unpaid |
| PENDING | Pending |
| N/A | Not Applicable |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| farm | Farm |
| vet | Veterinarian |
| Value | Meaning |
|---|---|
| active | Active |
| completed | Completed |
| archived | Archived |
| Value | Meaning |
|---|---|
| farm | Farm |
| vet | Veterinarian |
| Value | Meaning |
|---|---|
| active | Active |
| completed | Completed |
| archived | Archived |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| updated_by | Updated By |
| id | Id |
| ledger | Ledger |
| farm | Farm |
| veterinarian | Veterinarian |
| title | Title |
| description | Description |
| start_date | Start Date |
| end_date | End Date |
| budget | Budget |
| status | Status |
| created_by | Created By |
| Value | Meaning |
|---|---|
| farm | Farm |
| vet | Veterinarian |
| Value | Meaning |
|---|---|
| active | Active |
| completed | Completed |
| archived | Archived |
| Value | Meaning |
|---|---|
| farm | Farm |
| vet | Veterinarian |
| Value | Meaning |
|---|---|
| active | Active |
| completed | Completed |
| archived | Archived |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| veterinarian | Veterinarian |
| balance | Balance |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| invoice | Invoice |
| payment | Payment |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| ledger | Ledger |
| transaction_type | Transaction Type |
| debit | Debit |
| credit | Credit |
| balance | Balance |
| currency | Currency |
| date | Date |
| reason | Reason |
| reference | Reference |
| health_record | Health Record |
| Value | Meaning |
|---|---|
| invoice | Invoice |
| payment | Payment |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| invoice | Invoice |
| payment | Payment |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| buyer | Buyer |
| balance | Balance |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| payment | Payment |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| CASH | Cash |
| MOBILE_MONEY | Mobile Money |
| BANK_TRANSFER | Bank Transfer |
| CHECK | Check |
| CREDIT | Credit/Later |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| ledger | Ledger |
| transaction_type | Transaction Type |
| debit | Debit |
| credit | Credit |
| balance | Balance |
| currency | Currency |
| date | Date |
| reason | Reason |
| reference | Reference |
| payment_method | Payment Method |
| milk_usage | Milk Usage |
| Value | Meaning |
|---|---|
| payment | Payment |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| CASH | Cash |
| MOBILE_MONEY | Mobile Money |
| BANK_TRANSFER | Bank Transfer |
| CHECK | Check |
| CREDIT | Credit/Later |
| Value | Meaning |
|---|---|
| payment | Payment |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| UGX | Ugandan Shilling |
| TZS | Tanzanian Shilling |
| RWF | Rwandan Franc |
| ETB | Ethiopian Birr |
| NGN | Nigerian Naira |
| GHS | Ghanaian Cedi |
| ZAR | South African Rand |
| ZMW | Zambian Kwacha |
| MWK | Malawian Kwacha |
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| Value | Meaning |
|---|---|
| CASH | Cash |
| MOBILE_MONEY | Mobile Money |
| BANK_TRANSFER | Bank Transfer |
| CHECK | Check |
| CREDIT | Credit/Later |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| IsVisitParticipantOrReadOnly | Anyone authenticated may read. A visit with a veterinarian is written by |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| scheduled | Scheduled |
| completed | Completed |
| cancelled | Cancelled |
| Value | Meaning |
|---|---|
| scheduled | Scheduled |
| completed | Completed |
| cancelled | Cancelled |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| IsVisitParticipantOrReadOnly | Anyone authenticated may read. A visit with a veterinarian is written by |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| veterinarian | Veterinarian |
| farm | Farm |
| livestock | Livestock |
| visit_date | Visit Date |
| visit_time | Visit Time |
| reason | Reason |
| status | Status |
| health_record | Health Record |
| status_in | Status In |
| livestock_farm | Livestock Farm |
| visit_date_from | Visit Date From |
| visit_date_to | Visit Date To |
| Value | Meaning |
|---|---|
| scheduled | Scheduled |
| completed | Completed |
| cancelled | Cancelled |
| Value | Meaning |
|---|---|
| scheduled | Scheduled |
| completed | Completed |
| cancelled | Cancelled |
POST an embedding, get back the animals it most likely belongs to.
Server-side 1:N identify, for the case the on-device matcher cannot handle:
a vet scans an animal that is not on any farm they serve, so nothing on the
device matches it. The answer names the animal and the farm, and tells the
vet whether they already have access - if not, they can attach themselves
through `POST /api/v1/veterinarians/myfarms/join/` and the farm's animals
start syncing.
This view deliberately searches EVERY farm and does not apply the tenant
`get_queryset()` scoping the other views in this module use. That is not a
missing filter: scoping the search to the caller's own farms is exactly what
on-device identify already does, and would make this endpoint pointless.
Access is expressed in the response instead, through `has_access`.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsVeterinarian | Custom permission to allow only veterinarians. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| livestock | Livestock |
| source_image | Source Image |
| embedding | Embedding |
| embed_dim | Embed Dim |
| frame_count | Frame Count |
| model_trial | Model Trial |
| model_version | Model Version |
| is_active | Is Active |
| notes | Notes |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| muzzle | Muzzle |
| profile | Profile |
| body | Body |
| ear_tag | Ear Tag |
| health | Health |
| document | Document |
| other | Other |
| Value | Meaning |
|---|---|
| muzzle | Muzzle |
| profile | Profile |
| body | Body |
| ear_tag | Ear Tag |
| health | Health |
| document | Document |
| other | Other |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| livestock | Livestock |
| image_type | Image Type |
| caption | Caption |
| captured_at | Captured At |
| is_active | Is Active |
| Value | Meaning |
|---|---|
| muzzle | Muzzle |
| profile | Profile |
| body | Body |
| ear_tag | Ear Tag |
| health | Health |
| document | Document |
| other | Other |
| Value | Meaning |
|---|---|
| muzzle | Muzzle |
| profile | Profile |
| body | Body |
| ear_tag | Ear Tag |
| health | Health |
| document | Document |
| other | Other |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| livestock | Livestock |
| crop | Crop |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| name | Name |
| description | Description |
| subject_type | Subject Type |
| farm | Farm |
| is_active | Is Active |
| slug | Slug |
| subject_field | Subject Field |
| Value | Meaning |
|---|---|
| livestock | Livestock |
| crop | Crop |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| process | Process |
| code | Code |
| display_name | Display Name |
| color | Color |
| order | Order |
| is_initial | Is Initial |
| is_terminal | Is Terminal |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| state | State |
| event_type | Event Type |
| delay | Delay |
| repeat_every | Repeat Every |
| max_occurrences | Max Occurrences |
| send_reminder | Send Reminder |
| reminder_before | Reminder Before |
| priority | Priority |
| is_active | Is Active |
| notes | Notes |
| delay_seconds | Delay Seconds |
| repeat_every_seconds | Repeat Every Seconds |
| reminder_before_seconds | Reminder Before Seconds |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| cereal | Cereal |
| legume | Legume |
| vegetable | Vegetable |
| fruit | Fruit |
| tuber | Tuber |
| cash_crop | Cash Crop |
| fodder | Fodder |
| other | Other |
| Value | Meaning |
|---|---|
| cereal | Cereal |
| legume | Legume |
| vegetable | Vegetable |
| fruit | Fruit |
| tuber | Tuber |
| cash_crop | Cash Crop |
| fodder | Fodder |
| other | Other |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| name | Name |
| category | Category |
| description | Description |
| icon | Icon |
| is_active | Is Active |
| process_definition | Process Definition |
| Value | Meaning |
|---|---|
| cereal | Cereal |
| legume | Legume |
| vegetable | Vegetable |
| fruit | Fruit |
| tuber | Tuber |
| cash_crop | Cash Crop |
| fodder | Fodder |
| other | Other |
| Value | Meaning |
|---|---|
| cereal | Cereal |
| legume | Legume |
| vegetable | Vegetable |
| fruit | Fruit |
| tuber | Tuber |
| cash_crop | Cash Crop |
| fodder | Fodder |
| other | Other |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| crop | Crop |
| name | Name |
| description | Description |
| maturity_days | Maturity Days |
| average_yield | Average Yield |
| is_active | Is Active |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| latitude | Latitude |
| longitude | Longitude |
| id | Id |
| farm | Farm |
| name | Name |
| area_acres | Area Acres |
| soil_type | Soil Type |
| notes | Notes |
| is_active | Is Active |
| near | Near |
| radius_km | Radius Km |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| farm | Farm |
| plot | Plot |
| crop | Crop |
| variety | Variety |
| planting_date | Planting Date |
| expected_harvest_date | Expected Harvest Date |
| actual_harvest_date | Actual Harvest Date |
| area_planted_acres | Area Planted Acres |
| current_status | Current Status |
| status_since_date | Status Since Date |
| is_active | Is Active |
| notes | Notes |
| lifecycle_initialized | Lifecycle Initialized |
| initialized_at | Initialized At |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| kg | Kilograms |
| bags | Bags |
| tonnes | Tonnes |
| crates | Crates |
| litres | Litres |
| Value | Meaning |
|---|---|
| kg | Kilograms |
| bags | Bags |
| tonnes | Tonnes |
| crates | Crates |
| litres | Litres |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| crop_cycle | Crop Cycle |
| date | Date |
| quantity | Quantity |
| unit | Unit |
| quality_grade | Quality Grade |
| notes | Notes |
| Value | Meaning |
|---|---|
| kg | Kilograms |
| bags | Bags |
| tonnes | Tonnes |
| crates | Crates |
| litres | Litres |
| Value | Meaning |
|---|---|
| kg | Kilograms |
| bags | Bags |
| tonnes | Tonnes |
| crates | Crates |
| litres | Litres |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Value | Meaning |
|---|---|
| fertilizer | Fertilizer |
| pesticide | Pesticide |
| herbicide | Herbicide |
| fungicide | Fungicide |
| irrigation | Irrigation |
| manure | Manure |
| seed | Seed |
| other | Other |
| Value | Meaning |
|---|---|
| fertilizer | Fertilizer |
| pesticide | Pesticide |
| herbicide | Herbicide |
| fungicide | Fungicide |
| irrigation | Irrigation |
| manure | Manure |
| seed | Seed |
| other | Other |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| FarmSubscriptionActive | Block writes to a farm's animals and records unless the writer's plan is active — a vet Reads always pass. The farm comes from a farm-nested URL ( |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| id | Id |
| crop_cycle | Crop Cycle |
| input_type | Input Type |
| product_name | Product Name |
| date | Date |
| quantity | Quantity |
| unit | Unit |
| cost | Cost |
| notes | Notes |
| Value | Meaning |
|---|---|
| fertilizer | Fertilizer |
| pesticide | Pesticide |
| herbicide | Herbicide |
| fungicide | Fungicide |
| irrigation | Irrigation |
| manure | Manure |
| seed | Seed |
| other | Other |
| Value | Meaning |
|---|---|
| fertilizer | Fertilizer |
| pesticide | Pesticide |
| herbicide | Herbicide |
| fungicide | Fungicide |
| irrigation | Irrigation |
| manure | Manure |
| seed | Seed |
| other | Other |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| name | Name |
| country_code | Country Code |
| language_code | Language Code |
| version | Version |
| active | Active |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| DjangoModelPermissionsOrAnonReadOnly | Similar to DjangoModelPermissions, except that anonymous users are |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| name | Name |
| country_code | Country Code |
| language_code | Language Code |
| version | Version |
| active | Active |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| title | Title |
| description | Description |
| active | Active |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| locale | Locale |
| text | Text |
| translated_text | Translated Text |
| not_translated | Not Translated |
| original | Original |
Group statistics by:
`type` = {stat_types}
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| locale | Locale |
| text | Text |
| translated_text | Translated Text |
| not_translated | Not Translated |
| original | Original |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAdminOrReadOnly | The request is authenticated as a user, or is a read-only request. |
| Value | Meaning |
|---|---|
| weekly | Weekly |
| monthly | Monthly |
| yearly | Yearly |
| lifetime | Lifetime |
| Value | Meaning |
|---|---|
| weekly | Weekly |
| monthly | Monthly |
| yearly | Yearly |
| lifetime | Lifetime |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAdminOrReadOnly | The request is authenticated as a user, or is a read-only request. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| name | Name |
| description | Description |
| amount | Amount |
| amount_usd | Amount Usd |
| discount | Discount |
| discount_usd | Discount Usd |
| hidden | Hidden |
| interval | Interval |
| trial_days | Trial Days |
| Value | Meaning |
|---|---|
| weekly | Weekly |
| monthly | Monthly |
| yearly | Yearly |
| lifetime | Lifetime |
| Value | Meaning |
|---|---|
| weekly | Weekly |
| monthly | Monthly |
| yearly | Yearly |
| lifetime | Lifetime |
Group statistics by:type = customer, is_active, date, month, plan, status
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAdminUser | Allows access only to admin users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| customer | Customer |
| start_date | Start Date |
| next_payment_date | Next Payment Date |
| is_active | Is Active |
| latest_payment | Latest Payment |
| enabled | Enabled |
| currently_active | Currently Active |
| currently_active_paid | Currently Active Paid |
| end_date | End Date |
| next_payment_start_date | Next Payment Start Date |
| sup | Sup |
| latest_payment_null | Latest Payment Null |
| payment_plan | Payment Plan |
| payment_status | Payment Status |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAdminUser | Allows access only to admin users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| customer | Customer |
| start_date | Start Date |
| next_payment_date | Next Payment Date |
| is_active | Is Active |
| latest_payment | Latest Payment |
| enabled | Enabled |
| end_date | End Date |
| next_payment_start_date | Next Payment Start Date |
| sup | Sup |
| latest_payment_null | Latest Payment Null |
| payment_plan | Payment Plan |
| payment_status | Payment Status |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| reference_number | Reference Number |
| payment_for | Payment For |
| phone_number | Phone Number |
| phone_number_hash | Phone Number Hash |
| phone_number_paid | Phone Number Paid |
| phone_number_paid_hash | Phone Number Paid Hash |
| transaction_id | Transaction Id |
| amount | Amount |
| amount_paid | Amount Paid |
| transaction_date | Transaction Date |
| request_trans_time | Request Trans Time |
| initiated | Initiated |
| completed | Completed |
| request_code | Request Code |
| request_description | Request Description |
| result_code | Result Code |
| result_description | Result Description |
| subscription | Subscription |
| plan | Plan |
| plan_quantity | Plan Quantity |
| purchase | Purchase |
| transaction_type | Transaction Type |
| stk_triggered | Stk Triggered |
| status | Status |
| checkout_request_id | Checkout Request Id |
| first_name | First Name |
| middle_name | Middle Name |
| last_name | Last Name |
| trans_time | Trans Time |
| confirmed | Confirmed |
| signal_processed | Signal Processed |
| provider | Provider |
| currency | Currency |
| redirect_url | Redirect Url |
| cancel_url | Cancel Url |
| payment_url | Payment Url |
| paypal_payment_id | Paypal Payment Id |
| resolved_manually | Resolved Manually |
| provider_event_id | Provider Event Id |
| store | Store |
| store_expiration_date | Store Expiration Date |
| store_period_type | Store Period Type |
| Value | Meaning |
|---|---|
| P | Product |
| S | Subscription |
| Value | Meaning |
|---|---|
| mpesa | M-Pesa |
| paypal | PayPal |
| revenuecat | RevenueCat |
| paystack | Paystack |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| USD | US Dollar |
| Value | Meaning |
|---|---|
| P | Product |
| S | Subscription |
| Value | Meaning |
|---|---|
| mpesa | M-Pesa |
| paypal | PayPal |
| revenuecat | RevenueCat |
| paystack | Paystack |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| USD | US Dollar |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| customer | Customer |
| start_date | Start Date |
| next_payment_date | Next Payment Date |
| is_active | Is Active |
| latest_payment | Latest Payment |
| enabled | Enabled |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| IsSuperUser | A base class from which all permission classes should inherit. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Value | Meaning |
|---|---|
| mpesa | mpesa |
| paystack | paystack |
| Value | Meaning |
|---|---|
| mpesa | mpesa |
| paystack | paystack |
Deactivate a subscription. Access runs to next_payment_date; trial subscriptions are converted to Pro Plan.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Value | Meaning |
|---|---|
| P | Product |
| S | Subscription |
| Value | Meaning |
|---|---|
| mpesa | M-Pesa |
| paypal | PayPal |
| revenuecat | RevenueCat |
| paystack | Paystack |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| USD | US Dollar |
Group statistics by:type = plan, status, payment_type, date, month, subscription, phone_number_hash, money_profile, bank, purchase_email, user, id
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAdminUser | Allows access only to admin users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| reference_number | Reference Number |
| payment_for | Payment For |
| phone_number | Phone Number |
| phone_number_hash | Phone Number Hash |
| phone_number_paid | Phone Number Paid |
| phone_number_paid_hash | Phone Number Paid Hash |
| transaction_id | Transaction Id |
| amount | Amount |
| amount_paid | Amount Paid |
| transaction_date | Transaction Date |
| request_trans_time | Request Trans Time |
| initiated | Initiated |
| completed | Completed |
| request_code | Request Code |
| request_description | Request Description |
| result_code | Result Code |
| result_description | Result Description |
| subscription | Subscription |
| plan | Plan |
| plan_quantity | Plan Quantity |
| purchase | Purchase |
| transaction_type | Transaction Type |
| stk_triggered | Stk Triggered |
| status | Status |
| checkout_request_id | Checkout Request Id |
| first_name | First Name |
| middle_name | Middle Name |
| last_name | Last Name |
| trans_time | Trans Time |
| confirmed | Confirmed |
| signal_processed | Signal Processed |
| provider | Provider |
| currency | Currency |
| redirect_url | Redirect Url |
| cancel_url | Cancel Url |
| payment_url | Payment Url |
| paypal_payment_id | Paypal Payment Id |
| resolved_manually | Resolved Manually |
| provider_event_id | Provider Event Id |
| store | Store |
| store_expiration_date | Store Expiration Date |
| store_period_type | Store Period Type |
| start_date | Start Date |
| end_date | End Date |
| min_amount | Min Amount |
| max_amount | Max Amount |
| subscription_null | Subscription Null |
| purchase_null | Purchase Null |
| shop | Shop |
| product | Product |
| product_variant | Product Variant |
| collection | Collection |
| money_profile | Money Profile |
| bank | Bank |
| min_amount_paid | Min Amount Paid |
| max_amount_paid | Max Amount Paid |
| Value | Meaning |
|---|---|
| P | Product |
| S | Subscription |
| Value | Meaning |
|---|---|
| mpesa | M-Pesa |
| paypal | PayPal |
| revenuecat | RevenueCat |
| paystack | Paystack |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| USD | US Dollar |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAdminUser | Allows access only to admin users. |
| Param name | Description |
|---|---|
| created | Created |
| modified | Modified |
| created_by | Created By |
| updated_by | Updated By |
| reference_number | Reference Number |
| payment_for | Payment For |
| phone_number | Phone Number |
| phone_number_hash | Phone Number Hash |
| phone_number_paid | Phone Number Paid |
| phone_number_paid_hash | Phone Number Paid Hash |
| transaction_id | Transaction Id |
| amount | Amount |
| amount_paid | Amount Paid |
| transaction_date | Transaction Date |
| request_trans_time | Request Trans Time |
| initiated | Initiated |
| completed | Completed |
| request_code | Request Code |
| request_description | Request Description |
| result_code | Result Code |
| result_description | Result Description |
| subscription | Subscription |
| plan | Plan |
| plan_quantity | Plan Quantity |
| purchase | Purchase |
| transaction_type | Transaction Type |
| stk_triggered | Stk Triggered |
| status | Status |
| checkout_request_id | Checkout Request Id |
| first_name | First Name |
| middle_name | Middle Name |
| last_name | Last Name |
| trans_time | Trans Time |
| confirmed | Confirmed |
| signal_processed | Signal Processed |
| provider | Provider |
| currency | Currency |
| redirect_url | Redirect Url |
| cancel_url | Cancel Url |
| payment_url | Payment Url |
| paypal_payment_id | Paypal Payment Id |
| resolved_manually | Resolved Manually |
| provider_event_id | Provider Event Id |
| store | Store |
| store_expiration_date | Store Expiration Date |
| store_period_type | Store Period Type |
| start_date | Start Date |
| end_date | End Date |
| min_amount | Min Amount |
| max_amount | Max Amount |
| subscription_null | Subscription Null |
| purchase_null | Purchase Null |
| shop | Shop |
| product | Product |
| product_variant | Product Variant |
| collection | Collection |
| money_profile | Money Profile |
| bank | Bank |
| min_amount_paid | Min Amount Paid |
| max_amount_paid | Max Amount Paid |
| Value | Meaning |
|---|---|
| P | Product |
| S | Subscription |
| Value | Meaning |
|---|---|
| mpesa | M-Pesa |
| paypal | PayPal |
| revenuecat | RevenueCat |
| paystack | Paystack |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| USD | US Dollar |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
| Value | Meaning |
|---|---|
| P | Product |
| S | Subscription |
| Value | Meaning |
|---|---|
| mpesa | M-Pesa |
| paypal | PayPal |
| revenuecat | RevenueCat |
| paystack | Paystack |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| USD | US Dollar |
| Value | Meaning |
|---|---|
| P | Product |
| S | Subscription |
| Value | Meaning |
|---|---|
| mpesa | M-Pesa |
| paypal | PayPal |
| revenuecat | RevenueCat |
| paystack | Paystack |
| Value | Meaning |
|---|---|
| KES | Kenyan Shilling |
| USD | US Dollar |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
Implements an endpoint to provide access tokens
The endpoint is used in the following flows:
* Authorization code
* Password
* Client credentials
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| AllowAny | Allow any access. |
Implements an endpoint to convert a provider token to an access token
The endpoint is used in the following flows:
* Authorization code
* Client credentials
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| AllowAny | Allow any access. |
Implements an endpoint to revoke access or refresh tokens
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| AllowAny | Allow any access. |
No description provided by developer
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
An endpoint for disconnect social auth backend providers such as Facebook.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |
Handle Paystack webhook events. Paystack retries anything that is not 200.
| Type | Description |
|---|---|
| IsPaystackWebhook | Allow only requests whose body is signed with PAYSTACK_SECRET_KEY. |
Let the app poll one of its own Paystack payments by reference number.
| Type | Description |
|---|---|
| OAuth2Authentication | OAuth 2 authentication backend using |
| SessionAuthentication | Use Django's session framework for authentication. |
| Type | Description |
|---|---|
| IsAuthenticated | Allows access only to authenticated users. |