---
title: "Add training data"
method: POST
path: "/model"
---

# Add training data

`POST /model`

## Request body

- Sample[]
  - `petal_length` number, required
  - `petal_width` number, required
  - `sepal_length` number, required
  - `sepal_width` number, required
  - `species` string
  - `classification` string

## Response `201`

Created

- ApiResponse
  - `code` integer
  - `type` string
  - `message` string

## Other responses

- `401` — Not Authorized
- `405` — Invalid input

---

[API](https://skmtc.dev/packtpublishing/apis/classifier.md) · [All operations](https://skmtc.dev/packtpublishing/apis/classifier/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/packtpublishing/classifier/revisions/300ff9246f47/schema)
