@@ -726,12 +726,13 @@ def delete_transformation(self, dataset_id: str, transformation_id: str) -> Dict
726
726
def create_document (
727
727
self ,
728
728
content : Content ,
729
- content_type : str = None ,
730
729
* ,
731
730
consent_id : Optional [str ] = None ,
732
731
dataset_id : str = None ,
732
+ description : str = None ,
733
733
ground_truth : Sequence [Dict [str , str ]] = None ,
734
734
metadata : Optional [dict ] = None ,
735
+ name : str = None ,
735
736
project_id : str = None ,
736
737
project_run_id : str = None ,
737
738
retention_in_days : int = None ,
@@ -744,8 +745,6 @@ def create_document(
744
745
745
746
:param content: Content to POST
746
747
:type content: Content
747
- :param content_type: MIME type for the document
748
- :type content_type: str, optional
749
748
:param consent_id: Id of the consent that marks the owner of the document
750
749
:type consent_id: str, optional
751
750
:param dataset_id: Id of the associated dataset
@@ -772,8 +771,10 @@ def create_document(
772
771
body = {
773
772
'consentId' : consent_id ,
774
773
'datasetId' : dataset_id ,
774
+ 'description' : description ,
775
775
'groundTruth' : ground_truth ,
776
776
'metadata' : metadata ,
777
+ 'name' : name ,
777
778
'projectId' : project_id ,
778
779
'projectRunId' : project_run_id ,
779
780
'retentionInDays' : retention_in_days ,
0 commit comments