---
title: "Schedule Training"
method: POST
path: "/knowledge-bases/v2/{kb_id}/schedule-training"
tags: ["Knowledge Bases V2"]
---

# Schedule Training

`POST /knowledge-bases/v2/{kb_id}/schedule-training`

## Request

- Base URL: `https://api.dante-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dante-ai.com/knowledge-bases/v2/{kb_id}/schedule-training`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2
    - Password
    - Token URL: `auth/jwt/login`
- TypeScript: <https://skmtc.dev/dante-ai/apis/dante-ai-api/docs/knowledge-bases/v2/:kb_id/schedule-training/post.ts> (a function with typed inputs; its response is checked against the schema)

Schedule autotraining time for a knowledge base.

## Path parameters

- `kb_id` string, uuid, required

## Query parameters

- `team_id` string, uuid

## Request body

- TrainingSchedulePayload
  - `option` 'daily' | 'weekly' | 'custom_interval', required: An enumeration.
  - `day_of_week` string
  - `hour` string, required
  - `minute` string

## Response `200`

Successful Response

- KnowledgeBaseTrainingSchedule
  - `id` string, uuid
  - `date_created` string, date-time
  - `date_updated` string, date-time
  - `kb_id` string, uuid, required: The ID of the knowledge base.
  - `user_id` string, uuid, required: The ID of the user associated with the knowledge base training schedule.
  - `option` 'daily' | 'weekly' | 'custom_interval', required: An enumeration.
  - `day_of_week` string: The scheduled day or days when model will begin retraining.
  - `hour` string, required: The scheduled time (hour) when model will begin retraining.
  - `minute` string: The scheduled time (minutes) when model will begin retraining.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dante-ai/apis/dante-ai-api.md) - [All operations](https://skmtc.dev/dante-ai/apis/dante-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dante-ai/apis/dante-ai-api/revisions/38b6c9a4246d?raw)
