@@ -76,7 +76,8 @@ def create(
7676 self ,
7777 * ,
7878 file : FileTypes ,
79- json_data : str ,
79+ name : str ,
80+ description : str | NotGiven = NOT_GIVEN ,
8081 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
8182 # The extra values given here take precedence over values defined on the client or passed to this method.
8283 extra_headers : Headers | None = None ,
@@ -90,7 +91,9 @@ def create(
9091 Args:
9192 file: The CSV file containing the dataset
9293
93- json_data: JSON string containing dataset metadata
94+ name: Name of the dataset
95+
96+ description: Optional description of the dataset
9497
9598 extra_headers: Send extra headers
9699
@@ -103,7 +106,8 @@ def create(
103106 body = deepcopy_minimal (
104107 {
105108 "file" : file ,
106- "json_data" : json_data ,
109+ "name" : name ,
110+ "description" : description ,
107111 }
108112 )
109113 files = extract_files (cast (Mapping [str , object ], body ), paths = [["file" ]])
@@ -189,7 +193,8 @@ async def create(
189193 self ,
190194 * ,
191195 file : FileTypes ,
192- json_data : str ,
196+ name : str ,
197+ description : str | NotGiven = NOT_GIVEN ,
193198 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
194199 # The extra values given here take precedence over values defined on the client or passed to this method.
195200 extra_headers : Headers | None = None ,
@@ -203,7 +208,9 @@ async def create(
203208 Args:
204209 file: The CSV file containing the dataset
205210
206- json_data: JSON string containing dataset metadata
211+ name: Name of the dataset
212+
213+ description: Optional description of the dataset
207214
208215 extra_headers: Send extra headers
209216
@@ -216,7 +223,8 @@ async def create(
216223 body = deepcopy_minimal (
217224 {
218225 "file" : file ,
219- "json_data" : json_data ,
226+ "name" : name ,
227+ "description" : description ,
220228 }
221229 )
222230 files = extract_files (cast (Mapping [str , object ], body ), paths = [["file" ]])
0 commit comments