---
title: "Train call to add suggestions to the knowledgebase."
method: POST
path: "/knowledgebases/{kbId}/train"
tags: ["Knowledgebases"]
---

# Train call to add suggestions to the knowledgebase.

`POST /knowledgebases/{kbId}/train`

## Path parameters

- `kbId` string, required

## Request body

- FeedbackRecordsDTO — Active learning feedback records.
  - `feedbackRecords` FeedbackRecordDTO[] — List of feedback records.
    - `userId` string — Unique identifier for the user.
    - `userQuestion` string — The suggested question being provided as feedback.
    - `qnaId` integer — The qnaId for which the suggested question is provided as feedback.

## Response `204`

HTTP 204 No Content.

## Other responses

- `default` — Error response.

## Changes

- **2019-06-24** `590ebbcfac51` — 1 info
  - api operation id `Knowledgebase_Train` removed and replaced with `Runtime_Train`

[Change history](https://skmtc.dev/azure/apis/qnamaker-runtime-client/changes/knowledgebases/:kbId/train/post.md)

---

[API](https://skmtc.dev/azure/apis/qnamaker-runtime-client.md) · [All operations](https://skmtc.dev/azure/apis/qnamaker-runtime-client/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/qnamaker-runtime-client/revisions/07212a22152e/schema)
