Create Learnings
Requires the
learning:write permission. Workspace API key owners must also remain workspace admins.API key eligibility
User and workspace API keys can create Learnings. Legacy organization API keys and agentic API keys cannot use this endpoint. A workspace API key must select one organization for every request by providing that organization’s Git provider ID asorg_id.
Batch behavior
Each request processes an ordered batch of 1–100 items. Every item identifies a repository and supplies Learning text; file-path and source-URL metadata are optional. CodeRabbit resolves repository ownership from the authenticated organization and records the authenticated user as the author. Callers cannot set either value. A processed batch returns HTTP 200 even when individual items fail. Check the overall status and every item result: each item is reported ascreated, duplicate, or failed in request order.