---
title: "Upload IVIVC dataset"
method: POST
path: "/api/ivivc/datasets"
tags: ["ivivc"]
---

# Upload IVIVC dataset

`POST /api/ivivc/datasets`

## Request

- Base URL: `https://api.ivive.app`
- URL: `https://api.ivive.app/api/ivivc/datasets`
- Auth: OAuth 2 (password, token URL `/api/auth/login`)

Upload a CSV file with paired in vitro/in vivo data. Parses, validates, and stores the dataset.

## Response `201`

Successful Response

- DatasetUploadResponse
  - `dataset_id` string, required
  - `name` string, required
  - `row_count` integer, required
  - `valid_count` integer, required
  - `missing_value_count` integer, required
  - `column_names` string[], required
  - `sample_rows` object[], required
  - `smiles_col_detected` boolean, required
  - `compound_name_col_detected` boolean, required
  - `metadata` DatasetMetadataSchema, required
    - `in_vitro_unit` string, required
    - `in_vivo_unit` string, required
    - `unit_source` string, required
    - `species` string, nullable
    - `compound_name` string, nullable
    - `formulation` string, nullable
    - `source` string, nullable
    - `description` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ivive/apis/ivive-app-api.md) · [All operations](https://skmtc.dev/ivive/apis/ivive-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ivive/apis/ivive-app-api/revisions/a67615eaf584?raw)
