Skip to content
SupportLogin
Combine multiple Datasets into a single new merged Dataset

Combine multiple Datasets into a single new merged Dataset

POST/api/v1/datasets/combine

Accepts an optional Idempotency-Key header to dedupe double-submits; when omitted, the server generates a unique key for this request. Returns the newly merged Dataset.

Header ParametersExpand Collapse
"Idempotency-Key": optional string
Body ParametersJSONExpand Collapse
dataset_ids: array of string

Source Dataset IDs to combine. Must all belong to the caller’s org and be in a combinable state.

name: string

User-supplied name for the merged Dataset. Surfaced in the dataset list.

ReturnsExpand Collapse
dataset_id: string

The newly created merged Dataset’s ID. Returns existing ID on idempotent replay.

Combine multiple Datasets into a single new merged Dataset

curl https://api.prod.adaptionlabs.ai/api/v1/datasets/combine \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $ADAPTION_API_KEY" \
    -d '{
          "dataset_ids": [
            "string",
            "string"
          ],
          "name": "name"
        }'
{
  "dataset_id": "dataset_id"
}
Returns Examples
{
  "dataset_id": "dataset_id"
}