---
title: "Add Datasourcefile Text Blob"
method: POST
path: "/api/v1/datasource/{datasource_id}/text_blob"
tags: ["Data Source"]
---

# Add Datasourcefile Text Blob

`POST /api/v1/datasource/{datasource_id}/text_blob`

add a new file to a datasource

## Path parameters

- `datasource_id` string, uuid, required

## Query parameters

- `ds_type` 'pdf' | 'doc' | 'http' | 'tool' | 'text_blob' | 'image' | 'text_image', required
- `name` string, nullable
- `description` string, nullable
- `org_id` string, uuid, nullable

## Request body

- object

## Response `201`

Successful Response

- IPostResponseBaseIDataSourceFileRead
  - `message` string, nullable
  - `meta` union
    - object
    - unknown
  - `data` IDataSourceFileRead
    - `ds_type` 'pdf' | 'doc' | 'http' | 'tool' | 'text_blob' | 'image' | 'text_image', required
    - `name` string, nullable
    - `description` string, nullable
    - `attributes` object
    - `org_id` string, uuid, nullable
    - `id` string, uuid, required

## Other responses

- `422` — Validation Error

---

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