@@ -726,12 +726,13 @@ def delete_transformation(self, dataset_id: str, transformation_id: str) -> Dict
726726 def create_document (
727727 self ,
728728 content : Content ,
729- content_type : str = None ,
730729 * ,
731730 consent_id : Optional [str ] = None ,
732731 dataset_id : str = None ,
732+ description : str = None ,
733733 ground_truth : Sequence [Dict [str , str ]] = None ,
734734 metadata : Optional [dict ] = None ,
735+ name : str = None ,
735736 project_id : str = None ,
736737 project_run_id : str = None ,
737738 retention_in_days : int = None ,
@@ -744,8 +745,6 @@ def create_document(
744745
745746 :param content: Content to POST
746747 :type content: Content
747- :param content_type: MIME type for the document
748- :type content_type: str, optional
749748 :param consent_id: Id of the consent that marks the owner of the document
750749 :type consent_id: str, optional
751750 :param dataset_id: Id of the associated dataset
@@ -772,8 +771,10 @@ def create_document(
772771 body = {
773772 'consentId' : consent_id ,
774773 'datasetId' : dataset_id ,
774+ 'description' : description ,
775775 'groundTruth' : ground_truth ,
776776 'metadata' : metadata ,
777+ 'name' : name ,
777778 'projectId' : project_id ,
778779 'projectRunId' : project_run_id ,
779780 'retentionInDays' : retention_in_days ,
0 commit comments