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

Combine multiple Datasets into a single new merged Dataset

datasets.combine.create(CombineCreateParams**kwargs) -> CombineCreateResponse
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.

ParametersExpand Collapse
idempotency_key: Optional[str]
dataset_ids: Sequence[str]

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

name: str

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

ReturnsExpand Collapse
class CombineCreateResponse: …
dataset_id: str

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

Combine multiple Datasets into a single new merged Dataset

import os
from adaption import Adaption

client = Adaption(
    api_key=os.environ.get("ADAPTION_API_KEY"),  # This is the default and can be omitted
)
combine = client.datasets.combine.create(
    dataset_ids=["string", "string"],
    name="name",
)
print(combine.dataset_id)
{
  "dataset_id": "dataset_id"
}
Returns Examples
{
  "dataset_id": "dataset_id"
}