Category Recommendations
Recommendations for each health category with their action items, the person's priorities across categories, and their order. An action item can carry a product for a Buy button.
List recommendations by category
Every category's recommendation with its action items, in the person's category order.
Get a category's recommendations
One category's recommendation with its action items.
Reorder action items
Reorder the action items inside a category's first recommendation. Items the client didn't include are appended at the end in their original order. Open to BOTH provider and patient — reorder doesn't touch reviewedByProvider/reviewedAt because rearranging items isn't a content review.
Delete a recommendation
Delete a specific recommendation by index for a category.
Regenerate a category
Trigger regeneration of category recommendations for a specific category. Fire-and-forget.
Reorder categories
Saves the order in which the person wants their categories shown.
List priorities
The person's priority action items, across categories. An item that no longer exists is left out.
Add a priority
Adds an action item to the person's priorities. Safe to repeat: an item that is already there answers `200` with the list unchanged. The item must belong to one of the person's current recommendations, otherwise `404`.
Remove a priority
Removes an action item from the person's priorities. Safe to repeat: it answers `200` even when the item was not there.
Reorder priorities
Reorder the user's priority list. Items in `order` not in the stored list are silently dropped; items in stored list missing from `order` are appended at the end in their existing relative order. Resilient to slightly-stale FE state.
Regenerate all categories
Trigger regeneration of ALL category recommendations for the person. Fire-and-forget.