Add a custom food item
Adds a custom food item to the caller's list. Names must be unique per user (case-insensitive): a duplicate answers 409 duplicate_name.
bearerAuthAuthorizationBearer <token>A Clerk user API key or OAuth access token carrying the falconry:read and/or falconry:write scope.
application/json- body
name*string^[\p{L}\p{M}\p{N} '_-]+$2 <= length <= 50description?stringlength <= 500foodType?string"whole""portion"defaultWeightGrams?numberTypical portion weight, grams. Pre-fills the amount when logging.
0 < value <= 20000Add a custom food item
application/json- response
id*stringOpaque Convex document id.
length <= 64name*stringDisplay name, e.g. "Quail".
description*string|nullfoodType*|'whole' (a whole animal) or 'portion' (a cut or part).
defaultWeightGrams*number|nullisCustom*booleanTrue for an item the caller created (editable); false for a built-in item.
isFavorite*booleanusageCount*numberlastUsedAt*string|nullcurl -X POST 'https://app.falconryscale.com/api/v1/food-items' \
-H 'Content-Type: application/json' \
-d '{
"name": "string"
}'{
"id": "string",
"name": "string",
"description": "string",
"foodType": "whole",
"defaultWeightGrams": 0,
"isCustom": true,
"isFavorite": true,
"usageCount": 0,
"lastUsedAt": "string"
}List food items
Returns the food items the caller can log (built-in ones plus their own custom items), with the caller's favourite flag and usage count. Use an item's `id` as `preyTypeId` in log_weight / update_weight for a fed weigh-in.
Edit a custom food item
Edits one of the caller's own custom food items (built-in items can't be edited: 404). Only the fields you send change; null clears an optional field.