---
title: "Add content to a Vector DB."
method: PATCH
path: "/VectorDBImport.json"
tags: ["Workspace"]
---

# Add content to a Vector DB.

`PATCH /VectorDBImport.json`

## Request body

- object
  - `db_id` string, required
  - `documents` object[] — List of Documents to be indexed.
    - `file` string, required — The file name.
    - `mime` string, required — The file mime type example text/plain.
    - `content` string, base64, required — Base64 encoded string of the file content
    - `tags` object — Key‑value pairs that annotate the URL (optional).
    - `maxTokens` integer — Maximum tokens to use when processing this URL (optional).
    - `maxOverlap` integer — Maximum tokens to use when processing this URL (optional).
  - `urls` object[] — List of URLs to be indexed.
    - `url` string, uri, required — The URL to fetch and index.
    - `tags` object — Key‑value pairs that annotate the URL (optional).
    - `maxTokens` integer — Maximum tokens to use when processing this URL (optional).
    - `maxOverlap` integer — Maximum tokens to use when processing this URL (optional).

## Response `200`

Success

## Other responses

- `404` — Not Found

---

[API](https://skmtc.net/strikedm/apis/strikedm-backend-user-api.md) · [All operations](https://skmtc.net/strikedm/apis/strikedm-backend-user-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/strikedm/strikedm-backend-user-api/revisions/53010fa1289e/schema)
