## Complete a dataset upload and trigger processing `datasets.upload.complete(UploadCompleteParams**kwargs) -> UploadCompleteResponse` **post** `/api/v1/datasets/upload/complete` Complete a dataset upload and trigger processing ### Parameters - `file_format: Literal["csv", "json", "jsonl", "parquet"]` Format of the uploaded file - `"csv"` - `"json"` - `"jsonl"` - `"parquet"` - `file_size_bytes: float` Size of the uploaded file in bytes - `name: str` Human-readable name for the dataset - `s3_key: str` S3 object key returned in the pre-signed URL response from /upload/initiate ### Returns - `class UploadCompleteResponse: …` - `dataset_id: str` ID of the newly created dataset ### Example ```python import os from adaption import Adaption client = Adaption( api_key=os.environ.get("ADAPTION_API_KEY"), # This is the default and can be omitted ) response = client.datasets.upload.complete( file_format="csv", file_size_bytes=1048576, name="my-training-data", s3_key="uploads/550e8400-e29b-41d4-a716-446655440000/my-training-data.csv", ) print(response.dataset_id) ``` #### Response ```json { "dataset_id": "550e8400-e29b-41d4-a716-446655440000" } ```