---
title: "Creates a vectors"
method: POST
path: "/api/v1/vectors"
tags: ["Vectors"]
---

# Creates a vectors

`POST /api/v1/vectors`

## Request body

- CreateVector
  - `token` string, required
  - `dataset_id` integer, required — the dataset id
  - `vector_data` string, required — fields must be same as column headers in the dataset {"data_header": "item_name"}

## Response `201`

vector created

## Other responses

- `401` — Error: Unauthorized
- `422` — invalid request - dataset_id can't be blank

---

[API](https://skmtc.net/labguru/apis/labguru-api.md) · [All operations](https://skmtc.net/labguru/apis/labguru-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labguru/labguru-api/revisions/0534e4d70b77/schema)
