{"components":{"parameters":{"dataset_visibility":{"description":"The visibility of the Datasets to query for.\n\n| visibility | description | Authorization Required |\n| ---------- | ----------- | -------------- |\n| PUBLIC   | All public Datasets are returned. | No |\n| PRIVATE  | All private Datasets that the user is authorized to access are returned.  | Yes |\n","in":"query","name":"visibility","required":false,"schema":{"$ref":"#/components/schemas/dataset_visibility"}},"path_collection_id":{"description":"The uuid of a Collection.","in":"path","name":"collection_id","required":true,"schema":{"$ref":"#/components/schemas/collection_id"}},"path_collection_version_id":{"description":"The uuid of a Collection Version.","in":"path","name":"collection_version_id","required":true,"schema":{"$ref":"#/components/schemas/collection_version_id"}},"path_dataset_id":{"description":"The uuid of the Dataset.","in":"path","name":"dataset_id","required":true,"schema":{"$ref":"#/components/schemas/dataset_id"}},"path_dataset_version_id":{"description":"The uuid of the Dataset Version.","in":"path","name":"dataset_version_id","required":true,"schema":{"$ref":"#/components/schemas/dataset_version_id"}},"schema_version":{"description":"Optional--Filter results by most recently published dataset versions with matching CELLxGENE schema version. Can\nmatch against major, minor, or patch schema version. Returns empty list if no match is found. Input should be in\nsemver format (X, X.Y, or X.Y.Z where X, Y, and Z are positive integers).\n","examples":{"major_schema_version":{"summary":"Major Schema Version Filter","value":"3"},"minor_schema_version":{"summary":"Minor Schema Version Filter","value":"3.1"},"patch_schema_version":{"summary":"Patch Schema Version Filter","value":"3.1.0"}},"in":"query","name":"schema_version","required":false,"schema":{"type":"string"}}},"responses":{"200":{"description":"OK"},"201":{"description":"Created"},"202":{"description":"Accepted"},"204":{"description":"No content"},"400":{"content":{"application/problem+json":{"schema":{"properties":{"detail":{"type":"string"},"invalid_parameters":{"items":{"properties":{"name":{"description":"the errant parameter","type":"string"},"reason":{"description":"the specific problem with the parameter","type":"string"},"value":{"description":"the errant value","type":"string"}},"type":"object"},"nullable":true,"type":"array"},"title":{"type":"string"},"type":{"type":"string"}},"type":"object"}}},"description":"Invalid or missing parameter"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/problem"}}},"description":"Failed to authenticate"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/problem"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/problem"}}},"description":"Resource not found"},"405":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/problem"}}},"description":"Method not allowed"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/problem"}}},"description":"File conflict"},"410":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/problem"}}},"description":"Content has been removed"},"413":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/problem"}}},"description":"Exceed File Size Limit"}},"schemas":{"asset_filetype":{"description":"the file type of the asset.","enum":["H5AD","RDS","ATAC_FRAGMENT","ATAC_INDEX"],"type":"string"},"asset_response":{"items":{"properties":{"filesize":{"description":"the size of the file in bytes.","type":"number"},"filetype":{"$ref":"#/components/schemas/asset_filetype"},"url":{"description":"A URL to download this asset.","type":"string"}},"type":"object"},"type":"array"},"batch_condition":{"description":"These keys define the batches that a normalization or integration algorithm should be aware of.\n[batch condition schema](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#batch_condition)\n","example":["patient","seqBatch"],"items":{"type":"string"},"nullable":true,"type":"array"},"citation":{"description":"Citation that includes downloadable permalink to h5ad artifact for this dataset, a permalink to collection it \nbelongs to in CZ CELLxGENE Discover, and--if applicable--the Publication DOI associated with the dataset.\nSee details about the exact format in the \n[schema definition](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#citation)\n","nullable":true,"type":"string"},"collection":{"description":"Collection metadata","properties":{"collection_id":{"$ref":"#/components/schemas/collection_id"},"collection_url":{"$ref":"#/components/schemas/collection_url"},"collection_version_id":{"$ref":"#/components/schemas/collection_version_id"},"consortia":{"$ref":"#/components/schemas/consortia"},"contact_email":{"$ref":"#/components/schemas/contact_email"},"contact_name":{"$ref":"#/components/schemas/contact_name"},"created_at":{"$ref":"#/components/schemas/created_at"},"curator_name":{"$ref":"#/components/schemas/curator_name"},"datasets":{"description":"A list of Dataset metadata associated with the Collection","items":{"$ref":"#/components/schemas/dataset"},"type":"array"},"description":{"$ref":"#/components/schemas/collection_description"},"doi":{"$ref":"#/components/schemas/doi"},"is_pre_analysis":{"$ref":"#/components/schemas/is_pre_analysis"},"links":{"$ref":"#/components/schemas/links"},"name":{"$ref":"#/components/schemas/collection_name"},"processing_status":{"$ref":"#/components/schemas/processing_status_collection"},"published_at":{"$ref":"#/components/schemas/published_at"},"publisher_metadata":{"$ref":"#/components/schemas/publisher_metadata"},"revised_at":{"$ref":"#/components/schemas/collection_revised_at"},"revising_in":{"$ref":"#/components/schemas/collection_revising_in"},"revision_of":{"$ref":"#/components/schemas/collection_revision_of"},"visibility":{"$ref":"#/components/schemas/visibility"}},"type":"object"},"collection_description":{"description":"A description of the Collection.","type":"string"},"collection_form_metadata":{"properties":{"consortia":{"$ref":"#/components/schemas/consortia"},"contact_email":{"$ref":"#/components/schemas/contact_email"},"contact_name":{"$ref":"#/components/schemas/contact_name"},"description":{"$ref":"#/components/schemas/collection_description"},"doi":{"$ref":"#/components/schemas/doi"},"is_pre_analysis":{"$ref":"#/components/schemas/is_pre_analysis"},"links":{"$ref":"#/components/schemas/links"},"name":{"$ref":"#/components/schemas/collection_name"}},"type":"object"},"collection_id":{"description":"A unique identifier of a Collection.","example":"fedcba98-7654-3210-fedc-ba9876543210","format":"uuid","type":"string"},"collection_list":{"description":"Collection metadata","properties":{"collection_id":{"$ref":"#/components/schemas/collection_id"},"collection_url":{"description":"The CELLxGENE Discover URL for the Collection. This points to the canonical link unless it's a revision,\nin which case it points to the unpublished revision version.\n","type":"string"},"collection_version_id":{"$ref":"#/components/schemas/collection_version_id"},"consortia":{"$ref":"#/components/schemas/consortia"},"contact_email":{"$ref":"#/components/schemas/contact_email"},"contact_name":{"$ref":"#/components/schemas/contact_name"},"created_at":{"type":"string"},"curator_name":{"$ref":"#/components/schemas/curator_name"},"datasets":{"description":"A preview of the metadata for each Dataset in the Collection.","items":{"$ref":"#/components/schemas/dataset_preview"},"type":"array"},"description":{"$ref":"#/components/schemas/collection_description"},"doi":{"$ref":"#/components/schemas/doi"},"is_pre_analysis":{"$ref":"#/components/schemas/is_pre_analysis"},"links":{"$ref":"#/components/schemas/links"},"name":{"$ref":"#/components/schemas/collection_name"},"processing_status":{"$ref":"#/components/schemas/processing_status_collection"},"published_at":{"$ref":"#/components/schemas/published_at"},"publisher_metadata":{"$ref":"#/components/schemas/publisher_metadata"},"revised_at":{"$ref":"#/components/schemas/collection_revised_at"},"revising_in":{"$ref":"#/components/schemas/collection_revising_in"},"revision_of":{"$ref":"#/components/schemas/collection_revision_of"},"visibility":{"$ref":"#/components/schemas/visibility"}},"type":"object"},"collection_name":{"description":"The name of the Collection.","nullable":true,"type":"string"},"collection_revised_at":{"description":"A timestamp indicating the last time a Revision for this Collection was published.","nullable":true,"type":"string"},"collection_revising_in":{"description":"If there is a private Revision for a public Collection, then `revising_in` is set to the id of  the private Revision in the metadata of the public Collection. The value is `None` if the user is not  authorized or no private Revision exists.\n","nullable":true,"type":"string"},"collection_revision_of":{"description":"If a private Collection is a Revision of a public Collection, then `revision_of` is set to the id of the \npublic Collection in the metadata of the private Collection. The value is `None` if no private Revision \nexists.\n","nullable":true,"type":"string"},"collection_tombstone":{"description":"If this is True, then the Collection has been deleted from CELLxGENE Discover.","type":"boolean"},"collection_url":{"description":"The CELLxGENE Discover URL for the Collection.","type":"string"},"collection_version":{"description":"Collection Version metadata","properties":{"collection_id":{"$ref":"#/components/schemas/collection_id"},"collection_url":{"$ref":"#/components/schemas/collection_url"},"collection_version_id":{"$ref":"#/components/schemas/collection_version_id"},"consortia":{"$ref":"#/components/schemas/consortia"},"contact_email":{"$ref":"#/components/schemas/contact_email"},"contact_name":{"$ref":"#/components/schemas/contact_name"},"created_at":{"$ref":"#/components/schemas/created_at"},"curator_name":{"$ref":"#/components/schemas/curator_name"},"dataset_versions":{"description":"A list of Dataset Versions associated with the Collection Version","items":{"$ref":"#/components/schemas/dataset_version"},"type":"array"},"description":{"$ref":"#/components/schemas/collection_description"},"doi":{"$ref":"#/components/schemas/doi"},"is_pre_analysis":{"$ref":"#/components/schemas/is_pre_analysis"},"links":{"$ref":"#/components/schemas/links"},"name":{"$ref":"#/components/schemas/collection_name"},"published_at":{"$ref":"#/components/schemas/collection_version_published_at"},"publisher_metadata":{"$ref":"#/components/schemas/publisher_metadata"},"visibility":{"$ref":"#/components/schemas/visibility"}},"type":"object"},"collection_version_id":{"description":"A unique identifier of a Collection Version.","example":"fedcba98-7654-3210-fedc-ba9876543210","format":"uuid","type":"string"},"collection_version_published_at":{"description":"A timestamp of when this Collection Version was published. The timestamp conforms to the ISO 8601 format to second precision. For example, 2023-05-10T17:22:42+00:00.","type":"string"},"consortia":{"items":{"description":"The broader research groups which contributed to this collection of datasets. Allowed consortia are\nlisted [here](https://github.com/chanzuckerberg/single-cell-data-portal/blob/main/backend/layers/common/validation.py#L12)\n","type":"string"},"type":"array"},"contact_email":{"description":"The email of contact person for the Collection. Example email john.smith@email.com","type":"string"},"contact_name":{"description":"The name of the primary contact for the Collection","type":"string"},"created_at":{"description":"A timestamp of when the resource was created. The timestamp conforms to the ISO 8601 format to second precision. For example, 2023-05-10T17:22:42+00:00.","type":"string"},"curator_name":{"description":"The name of the curator for the Collection.","nullable":true,"type":"string"},"dataset":{"properties":{"assay":{"$ref":"#/components/schemas/dataset_assay"},"assets":{"$ref":"#/components/schemas/asset_response"},"batch_condition":{"$ref":"#/components/schemas/batch_condition"},"cell_count":{"description":"The number of cells in the Dataset.","nullable":true,"type":"integer"},"cell_type":{"default":[],"description":"[cell type label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#cell_type)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"citation":{"$ref":"#/components/schemas/citation"},"dataset_id":{"$ref":"#/components/schemas/dataset_id"},"dataset_version_id":{"$ref":"#/components/schemas/dataset_version_id"},"default_embedding":{"$ref":"#/components/schemas/default_embedding"},"development_stage":{"default":[],"description":"[development stage label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#development_stage)\n","items":{"$ref":"#/components/schemas/ontology_element"},"nullable":true,"type":"array"},"disease":{"$ref":"#/components/schemas/dataset_disease"},"donor_id":{"$ref":"#/components/schemas/donor_id"},"embeddings":{"$ref":"#/components/schemas/embeddings"},"explorer_url":{"$ref":"#/components/schemas/explorer_url"},"feature_biotype":{"$ref":"#/components/schemas/feature_biotype"},"feature_count":{"$ref":"#/components/schemas/feature_count"},"feature_reference":{"$ref":"#/components/schemas/feature_reference"},"genetic_perturbation_strategy":{"$ref":"#/components/schemas/genetic_perturbation_strategy"},"is_pre_analysis":{"$ref":"#/components/schemas/is_pre_analysis"},"is_primary_data":{"$ref":"#/components/schemas/is_primary_data"},"mean_genes_per_cell":{"nullable":true,"type":"number"},"organism":{"$ref":"#/components/schemas/dataset_organism","nullable":true},"perturbation_types":{"$ref":"#/components/schemas/perturbation_types"},"primary_cell_count":{"description":"The number of primary cells in the Dataset.","nullable":true,"type":"integer"},"processing_status":{"$ref":"#/components/schemas/processing_status_dataset"},"processing_status_detail":{"description":"When `processing_status` is set to VALIDATION_FAILURE, further details about the validation failures for\nthe dataset can be found in `processing_status_detail`.\n","nullable":true,"type":"string"},"published_at":{"$ref":"#/components/schemas/dataset_published_at"},"raw_data_location":{"$ref":"#/components/schemas/raw_data_location"},"revised_at":{"$ref":"#/components/schemas/dataset_revised_at"},"schema_version":{"description":"The version of the CELLxGENE schema with which the Dataset complies to. [Schemas](https://github.com/chanzuckerberg/single-cell-curation/tree/main/schema)\n","nullable":true,"type":"string"},"self_reported_ethnicity":{"default":[],"description":"[self reported ethnicity label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#self_reported_ethnicity)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"sex":{"default":[],"description":"[sex label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#sex)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"spatial":{"$ref":"#/components/schemas/spatial"},"suspension_type":{"$ref":"#/components/schemas/suspension_type"},"tissue":{"$ref":"#/components/schemas/dataset_tissue"},"title":{"description":"[title](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#title)\n","nullable":true,"type":"string"},"x_approximate_distribution":{"$ref":"#/components/schemas/distribution"}},"type":"object"},"dataset_assay":{"default":[],"description":"[assay label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#assay)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"dataset_disease":{"default":[],"description":"[disease label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#disease)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"dataset_id":{"description":"A unique identifier of a Dataset.","example":"01234567-89ab-cdef-0123-456789abcdef","format":"uuid","type":"string"},"dataset_index":{"properties":{"assay":{"$ref":"#/components/schemas/dataset_assay"},"assets":{"$ref":"#/components/schemas/asset_response"},"batch_condition":{"$ref":"#/components/schemas/batch_condition"},"cell_count":{"description":"The number of cells in the Dataset.","nullable":true,"type":"integer"},"cell_type":{"default":[],"description":"[cell type label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#cell_type)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"citation":{"$ref":"#/components/schemas/citation"},"collection_doi":{"$ref":"#/components/schemas/doi"},"collection_doi_label":{"$ref":"#/components/schemas/doi_label"},"collection_id":{"$ref":"#/components/schemas/collection_id"},"collection_name":{"$ref":"#/components/schemas/collection_name"},"collection_version_id":{"$ref":"#/components/schemas/collection_version_id"},"dataset_id":{"$ref":"#/components/schemas/dataset_id"},"dataset_version_id":{"$ref":"#/components/schemas/dataset_version_id"},"development_stage":{"default":[],"description":"[development stage label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#development_stage)\n","items":{"$ref":"#/components/schemas/ontology_element"},"nullable":true,"type":"array"},"disease":{"$ref":"#/components/schemas/dataset_disease"},"donor_id":{"$ref":"#/components/schemas/donor_id"},"explorer_url":{"$ref":"#/components/schemas/explorer_url"},"genetic_perturbation_strategy":{"$ref":"#/components/schemas/genetic_perturbation_strategy"},"is_pre_analysis":{"$ref":"#/components/schemas/is_pre_analysis"},"is_primary_data":{"$ref":"#/components/schemas/is_primary_data"},"mean_genes_per_cell":{"nullable":true,"type":"number"},"organism":{"$ref":"#/components/schemas/dataset_organism"},"perturbation_types":{"$ref":"#/components/schemas/perturbation_types"},"primary_cell_count":{"description":"The number of primary cells in the Dataset.","nullable":true,"type":"integer"},"processing_status":{"$ref":"#/components/schemas/processing_status_dataset"},"processing_status_detail":{"description":"When `processing_status` is set to VALIDATION_FAILURE, further details about the validation failures for\nthe dataset can be found in `processing_status_detail`.\n","nullable":true,"type":"string"},"published_at":{"$ref":"#/components/schemas/dataset_published_at"},"revised_at":{"$ref":"#/components/schemas/dataset_revised_at"},"revision_of_collection":{"$ref":"#/components/schemas/collection_revision_of"},"revision_of_dataset":{"$ref":"#/components/schemas/dataset_revision_of"},"schema_version":{"description":"The version of the CELLxGENE schema with which the Dataset complies to. [Schemas](https://github.com/chanzuckerberg/single-cell-curation/tree/main/schema)\n","nullable":true,"type":"string"},"self_reported_ethnicity":{"default":[],"description":"[self reported ethnicity label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#self_reported_ethnicity)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"sex":{"default":[],"description":"[sex label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#sex)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"spatial":{"$ref":"#/components/schemas/spatial"},"suspension_type":{"$ref":"#/components/schemas/suspension_type"},"tissue":{"$ref":"#/components/schemas/dataset_tissue"},"title":{"description":"[title](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#title)\n","nullable":true,"type":"string"},"visibility":{"$ref":"#/components/schemas/dataset_visibility"},"x_approximate_distribution":{"$ref":"#/components/schemas/distribution"}},"type":"object"},"dataset_organism":{"default":[],"description":"[organism label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#organism)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"dataset_preview":{"properties":{"assay":{"$ref":"#/components/schemas/dataset_assay"},"dataset_id":{"$ref":"#/components/schemas/dataset_id"},"disease":{"$ref":"#/components/schemas/dataset_disease"},"genetic_perturbation_strategy":{"$ref":"#/components/schemas/genetic_perturbation_strategy"},"organism":{"$ref":"#/components/schemas/dataset_organism"},"perturbation_types":{"$ref":"#/components/schemas/perturbation_types"},"suspension_type":{"$ref":"#/components/schemas/suspension_type"},"tissue":{"$ref":"#/components/schemas/dataset_tissue"}},"type":"object"},"dataset_published_at":{"description":"A timestamp of when the Dataset was first published. The timestamp conforms to the ISO 8601 format to second precision. For example, 2023-05-10T17:22:42+00:00.","nullable":true,"type":"string"},"dataset_revised_at":{"description":"A timestamp indicating the last time a Revision for this Dataset was published. The timestamp conforms to the ISO 8601 format to second precision. For example, 2023-05-10T17:22:42+00:00.","nullable":true,"type":"string"},"dataset_revision_of":{"description":"If this Dataset is a Revision of another Dataset, then this field contains the Dataset id of the Dataset that\nthis Dataset is revising.  The value is `None` if this Dataset is not a Revision.\n","nullable":true,"type":"string"},"dataset_tissue":{"default":[],"description":"[tissue label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#tissue)\n","items":{"allOf":[{"$ref":"#/components/schemas/ontology_element"},{"properties":{"tissue_type":{"nullable":true,"type":"string"}},"type":"object"}]},"type":"array"},"dataset_tombstone":{"description":"When True, this Dataset was withdrawn from the Data curation at the request of its submitter.","type":"boolean"},"dataset_version":{"properties":{"assay":{"$ref":"#/components/schemas/dataset_assay"},"assets":{"$ref":"#/components/schemas/asset_response"},"batch_condition":{"$ref":"#/components/schemas/batch_condition"},"cell_count":{"description":"The number of cells in the Dataset.","nullable":true,"type":"integer"},"cell_type":{"default":[],"description":"[cell type label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#cell_type)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"citation":{"$ref":"#/components/schemas/citation"},"collection_id":{"$ref":"#/components/schemas/collection_id"},"collection_version_id":{"description":"The Collection Version in which this Dataset Version was first published.\n","format":"uuid","type":"string"},"dataset_id":{"$ref":"#/components/schemas/dataset_id"},"dataset_version_id":{"$ref":"#/components/schemas/dataset_version_id"},"default_embedding":{"$ref":"#/components/schemas/default_embedding"},"development_stage":{"default":[],"description":"[development stage label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#development_stage)\n","items":{"$ref":"#/components/schemas/ontology_element"},"nullable":true,"type":"array"},"disease":{"$ref":"#/components/schemas/dataset_disease"},"donor_id":{"$ref":"#/components/schemas/donor_id"},"embeddings":{"$ref":"#/components/schemas/embeddings"},"feature_biotype":{"$ref":"#/components/schemas/feature_biotype"},"feature_count":{"$ref":"#/components/schemas/feature_count"},"feature_reference":{"$ref":"#/components/schemas/feature_reference"},"genetic_perturbation_strategy":{"$ref":"#/components/schemas/genetic_perturbation_strategy"},"is_primary_data":{"$ref":"#/components/schemas/is_primary_data"},"mean_genes_per_cell":{"nullable":true,"type":"number"},"organism":{"$ref":"#/components/schemas/dataset_organism","nullable":true},"perturbation_types":{"$ref":"#/components/schemas/perturbation_types"},"primary_cell_count":{"description":"The number of primary cells in the Dataset.","nullable":true,"type":"integer"},"published_at":{"$ref":"#/components/schemas/dataset_version_published_at"},"raw_data_location":{"$ref":"#/components/schemas/raw_data_location"},"schema_version":{"description":"The version of the CELLxGENE schema with which the Dataset complies to. [Schemas](https://github.com/chanzuckerberg/single-cell-curation/tree/main/schema)\n","nullable":true,"type":"string"},"self_reported_ethnicity":{"default":[],"description":"[self reported ethnicity label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#self_reported_ethnicity)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"sex":{"default":[],"description":"[sex label](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#sex)\n","items":{"$ref":"#/components/schemas/ontology_element"},"type":"array"},"spatial":{"$ref":"#/components/schemas/spatial"},"suspension_type":{"$ref":"#/components/schemas/suspension_type"},"tissue":{"$ref":"#/components/schemas/dataset_tissue"},"title":{"description":"[title](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#title)\n","nullable":true,"type":"string"},"x_approximate_distribution":{"$ref":"#/components/schemas/distribution"}},"type":"object"},"dataset_version_id":{"description":"A unique identifier of a Dataset Version.","example":"01234567-89ab-cdef-0123-456789abcdef","format":"uuid","type":"string"},"dataset_version_published_at":{"description":"A timestamp of when this Dataset Version was published. The timestamp conforms to the ISO 8601 format to second precision. For example, 2023-05-10T17:22:42+00:00.","type":"string"},"dataset_visibility":{"default":"PUBLIC","description":"The visibility of the Dataset.\n\n| visibility | description |\n| ---------- | ----------- | \n| PUBLIC   | The Dataset is published and accessible to all users of CELLxGENE Discover |\n| PRIVATE  | The Dataset is in private review, either as a new Dataset that has not been published or a Revision of a previously published Dataset. |\n","enum":["PUBLIC","PRIVATE"],"type":"string"},"default_embedding":{"description":"Key for the embedding that is displayed by default in CZ CELLxGENE Explorer","nullable":true,"type":"string"},"distribution":{"description":"CELLxGENE Discover runs a heuristic to detect the approximate distribution of the data in X so that it can accurately calculate statistical properties of the data. This field enables the curator to override this heuristic and specify the data distribution explicitly. [x_approximate_distribution](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#x_approximate_distribution)","enum":["COUNT","NORMAL"],"nullable":true,"type":"string"},"doi":{"description":"Document Object Identifier (DOI). Specifically, only the _CURIE reference_.","example":"10.1093/ajae/aaq063","nullable":true,"type":"string"},"doi_label":{"description":"Summary citation for the given DOI","example":"Ahern et al. (2022) Cell","nullable":true,"type":"string"},"donor_id":{"description":"Free-text that identifies a unique individual that data were derived from.","items":{"type":"string"},"nullable":true,"type":"array"},"embeddings":{"description":"List of keys for embeddings in the dataset","items":{"type":"string"},"nullable":true,"type":"array"},"explorer_url":{"description":"The URL at which a given Dataset may be explored using CELLxGENE Explorer.\n","nullable":true,"type":"string"},"feature_biotype":{"description":"List of biotypes of features represented in dataset. Must be 'gene', 'spike-in', or both.","items":{"enum":["gene","spike-in"],"type":"string"},"nullable":true,"type":"array"},"feature_count":{"description":"Number of features in dataset","nullable":true,"type":"integer"},"feature_reference":{"description":"List of NCBITaxon ontology term IDs mapping to reference organisms for features in dataset. Find current list of\nsupported feature reference term IDs [here](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#required-gene-annotations).\n","items":{"type":"string"},"nullable":true,"type":"array"},"genetic_perturbation_entry":{"description":"Metadata for a single genetic perturbation, as defined in uns['genetic_perturbations'] per the\nCELLxGENE schema.\n","properties":{"derived_features":{"additionalProperties":{"type":"string"},"description":"Map of feature IDs to feature names derived from this perturbation.","type":"object"},"derived_genomic_regions":{"description":"Genomic regions derived from this perturbation.","items":{"type":"string"},"type":"array"},"protospacer_adjacent_motif":{"description":"The PAM sequence for the protospacer.","nullable":true,"type":"string"},"protospacer_sequence":{"description":"The protospacer sequence for CRISPR-based perturbations.","nullable":true,"type":"string"},"role":{"description":"The role of the perturbation (e.g. \"KO\", \"overexpression\").","type":"string"}},"required":["role"],"type":"object"},"genetic_perturbation_strategy":{"description":"List of unique genetic perturbation strategies present across all observations in the dataset. Values are\nsourced from obs['genetic_perturbation_strategy'], with 'no perturbations' and null values excluded. Items\nare in ascending lexical order. If the dataset does not contain a 'genetic_perturbation_strategy' obs\ncolumn, this field is null.\n","example":["CRISPR","CRISPRi"],"items":{"type":"string"},"nullable":true,"type":"array"},"genetic_perturbations_dict":{"additionalProperties":{"$ref":"#/components/schemas/genetic_perturbation_entry"},"description":"The full uns['genetic_perturbations'] dictionary from the dataset, keyed by perturbation ID.\nEach value is a genetic_perturbation_entry. Null if the dataset has no genetic perturbations data.\n","nullable":true,"type":"object"},"ingestion_manifest":{"description":"Manifest of files defining a dataset.\n","properties":{"anndata":{"anyOf":[{"format":"uri","maxLength":2083,"minLength":1,"type":"string"},{"format":"uri","minLength":1,"type":"string"}],"title":"Anndata"},"atac_fragment":{"anyOf":[{"format":"uri","maxLength":2083,"minLength":1,"type":"string"},{"format":"uri","minLength":1,"type":"string"}],"title":"ATAC Seq Fragment","type":"string"}},"title":"IngestionManifest","type":"object"},"is_pre_analysis":{"default":false,"description":"Indicates whether this Collection contains pre-analysis datasets. When True, the CXG conversion\nstep is skipped and the pre-analysis flag is passed to the validator and label appender.\nThis value is set at collection creation and cannot be changed afterwards.\n","type":"boolean"},"is_primary_data":{"description":"[is_primary_data](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#is_primary_data)\n\nDescribes whether cellular observations for this Dataset are all\ncanonical (True), all non-canonical (False), or contain a mixture (True, False).\n","items":{"type":"boolean"},"type":"array"},"links":{"items":{"additionalProperties":false,"description":"A URL that links associated resources with the Collection.","properties":{"link_name":{"description":"A brief description of the URL.","nullable":true,"type":"string"},"link_type":{"description":"Any valid URL.","enum":["PROTOCOL","RAW_DATA","LAB_WEBSITE","OTHER","DATA_SOURCE"],"type":"string"},"link_url":{"description":"The URL of the link.","type":"string"}},"required":["link_url","link_type"],"type":"object"},"type":"array"},"ontology_element":{"properties":{"label":{"type":"string"},"ontology_term_id":{"type":"string"}},"type":"object"},"perturbation_types":{"description":"List of unique perturbation types present across all observations in the dataset. Values are sourced from\nobs['perturbation_types'], with 'na' and null values excluded. Items are in ascending lexical order.\nIf the dataset does not contain a 'perturbation_types' obs column, this field is null.\n","example":["CRISPR","ORF"],"items":{"type":"string"},"nullable":true,"type":"array"},"problem":{"description":"Error message container for HTTP APIs.","properties":{"detail":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"}},"type":"object"},"processing_status_collection":{"description":"Processing status for a Collection\n| `processing_status` | Description |\n| ------------------- | ----------- |\n| `\"FAILURE\"` | one or more Datasets ran into an error during processing. More information can be found in the Dataset processing_status logs. |\n| `\"PENDING\"` | one or more Datasets are still being processed. |\n| `\"SUCCESS\"` | all Datasets have been processed successfully. |\n| `null` | the Collection has no Datasets. |\n","enum":["FAILURE","PENDING","SUCCESS"],"nullable":true,"type":"string"},"processing_status_dataset":{"description":"Processing status for a Dataset\n| `processing_status` | Description |\n| ------------------- | ----------- |\n| `\"PENDING\"` | the Dataset has is still being processed. |\n| `\"SUCCESS\"` | the Dataset has successfully been processed. |\n| `\"VALIDATION_FAILURE\"` | An error occured during validation. See `processing_status_detail`|\n| `\"PIPELINE_FAILURE\"`| An error occured during processing. |\n| `\"INITIALIZED\"` | Dataset id created, and awaiting upload. |\n","enum":["PENDING","SUCCESS","VALIDATION_FAILURE","PIPELINE_FAILURE","INITIALIZED"],"nullable":true,"type":"string"},"published_at":{"description":"A timestamp of when the Collection was first published. The timestamp conforms to the ISO 8601 format to second precision. For example, 2023-05-10T17:22:42+00:00.","nullable":true,"type":"string"},"publisher_metadata":{"nullable":true,"properties":{"authors":{"items":{"properties":{"family":{"type":"string"},"given":{"type":"string"},"name":{"type":"string"}},"type":"object"},"type":"array"},"is_preprint":{"type":"boolean"},"journal":{"type":"string"},"published_day":{"type":"number"},"published_month":{"type":"number"},"published_year":{"type":"number"}},"type":"object"},"raw_data_location":{"description":"Location in dataset's AnnData artifact where raw (i.e. non-normalized) matrix data is stored","enum":["X","raw.X"],"nullable":true,"type":"string"},"spatial":{"description":"Metadata associated with spatial datasets. If the dataset is not spatial, this field is null.","nullable":true,"properties":{"has_fullres":{"description":"[has_fullres](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#spatiallibrary_idimagesfullres)\n\nFlag indicating if a spatial dataset's metadata includes a numpy.ndarray representing the full resolution \nimage.\n","type":"boolean"},"is_single":{"description":"[is_single](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#is_single)\n\nFlag indicating if a spatial dataset represents one Space Ranger output for a single tissue section or the\noutput for a single array on a puck.\n","type":"boolean"}}},"suspension_type":{"description":"[suspension_type](https://chanzuckerberg.github.io/single-cell-curation/latest-schema.html#suspension_type)\n\nList of unique suspension types represented in the dataset, corresponding to dataset's assay(s).\nPossible item values are 'nucleus', 'cell', and/or 'na'.\n","example":["cell"],"items":{"type":"string"},"nullable":true,"type":"array"},"visibility":{"default":"PUBLIC","description":"The visibility of the Collection.\n\n| visibility | description |\n| ---------- | ----------- | \n| PUBLIC   | The Collection is published and accessible to all users of CELLxGENE Discover |\n| PRIVATE  | The Collection is in private review, either as a new Collection that has not been published or a Revision of a previously published Collection. |\n","enum":["PUBLIC","PRIVATE"],"type":"string"}},"securitySchemes":{"curatorAccess":{"bearerFormat":"JWT","scheme":"bearer","type":"http","x-bearerInfoFunc":"backend.portal.api.app.v1.authentication.curation_access_token_func"},"curatorAccessLenient":{"bearerFormat":"JWT","scheme":"bearer","type":"http","x-bearerInfoFunc":"backend.portal.api.app.v1.authentication.curation_access_token_func_lenient"}}},"info":{"contact":{"email":"cellxgene@chanzuckerberg.com","name":"API Support"},"description":"## For Examples\n* [Python Notebooks](https://github.com/chanzuckerberg/single-cell-curation/tree/main/notebooks/curation_api/python_raw)\n* [R Notebooks](https://github.com/chanzuckerberg/single-cell-curation/tree/main/notebooks/curation_api/R)\n\n## Data Model\n<!-- Data model diagram created via Lucid: https://lucid.app/lucidchart/8d085832-34f4-4413-9c1d-44e77d06e326/edit?invitationId=inv_ed354532-7256-4e0a-9ad0-b622905e5198&page=Vfzkzdv~I1fL# -->\n<img src=\"/static/discover-api-data-model.png\" width=\"50%\"/>\n\n## Working with versions\n\n#### Access to published version history\nThe CZ CELLxGENE Discover API supports access to all published versions of Collections and Datasets. For example,\nif a Dataset was published and then later updated and published again, then both Dataset Versions can be accessed.\n\n#### Different types of identifiers\nThe Collection identifier collection_id is set during the creation of a Collection; it does not change, even if the\nCollection is updated. It always refers to the latest published version of the Collection and is the required\nidentifier to use with Collection endpoints.\n\nThe Collection Version identifier `collection_version_id` refers to one specific published version of a Collection\nand is required by the Collection Version endpoint.\n\nThe Dataset identifier dataset_id is set during the creation of a Dataset; it does not change, even if the Dataset\nis updated. It always refers to the latest published version of the Dataset and is the required identifier to use\nwith Dataset endpoints.\n\nThe Dataset Version identifier `dataset_version_id` refers to one specific published version of a Dataset and is\nrequired by the Dataset Version endpoint.\n\n**Important Note:** if a Dataset is NOT updated during a revision of its parent Collection and the revision is\npublished, then its Dataset Version (and identifier `dataset_version_id`) do not change even though there is a new\nCollection Version (and identifier `collection_version_id`).\n","termsOfService":"https://cellxgene.cziscience.com/tos","title":"Chan Zuckerberg Initiative CELLxGENE Discover API","version":"1.0.0"},"openapi":"3.0.0","paths":{"/v1/auth/token":{"post":{"description":"Returns a bearer access token that must be passed in an Authorization header to requests that\nrequire authorization such as creating a new Collection.\n","operationId":"backend.curation.api.v1.curation.auth.token.post","parameters":[{"description":"Your curation API key.```","in":"header","name":"x-api-key","required":true,"schema":{"example":"<YOUR-CURATOR-API-KEY>","type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"access_token":{"type":"string"}},"type":"object"}}},"description":"Created"},"401":{"$ref":"#/components/responses/401"}},"summary":"Generate an access token","tags":["Authentication"]}},"/v1/collection_versions/{collection_version_id}":{"get":{"description":"Fetch full metadata for a published Collection Version and its Dataset Versions. The `collection_version_id` must reference a *Collection Version*, **NOT** a *Collection*.\n","operationId":"backend.curation.api.v1.curation.collection_versions.collection_version_id.actions.get","parameters":[{"$ref":"#/components/parameters/path_collection_version_id"}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/collection_version"}]}}},"description":"OK"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"410":{"$ref":"#/components/responses/410"}},"summary":"Fetch a Collection Version with Dataset Versions","tags":["Collection Version"]}},"/v1/collections":{"get":{"description":"For each Collection in the list, the Datasets for that Collection include a subset of Dataset metadata as a \npreview. To retrieve full Dataset metadata for a specific Collection, GET /v1/collections/{collection_id} must \nbe used.\n\nThe default `visibility` is PUBLIC. When visibility is PUBLIC, then a list of all public Collections is \nreturned. \n\nWhen the visibility parameter is set to PRIVATE, a list of all private Collections or private revisions of \npublic Collections that the user is authorized to access is returned. An access token MUST be set in the request\nheader as: `Authorization: Bearer <access_token>`\n\nIf a Collection in the list is a private revision of a public Collection, then it is annotated with \n`revision_of`.\n\n* Optional: provide your access token in the request header as `Authorization: Bearer <access_token>`.\n","operationId":"backend.curation.api.v1.curation.collections.actions.get","parameters":[{"description":"The visibility of the Collections to query for (and its constituent Datasets).\n\n| visibility | description | Authorization Required |\n| ---------- | ----------- | -------------- |\n| PUBLIC   | All public Collections are returned. | No |\n| PRIVATE  | All private Collections that the user is authorized to access are returned. If a Collection in the list is a private Revision of a public Collection, then it is annotated with revision_of. | Yes |\n","in":"query","name":"visibility","required":false,"schema":{"$ref":"#/components/schemas/visibility"}},{"description":"Return Collections owned by the specified curator. The use of this parameter is limited to curators \nwith permission to query all Collections.\n","example":"John Smith","in":"query","name":"curator","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"allOf":[{"$ref":"#/components/schemas/collection_list"}]},"type":"array"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"}},"security":[{"curatorAccessLenient":[]},{}],"summary":"List Collections' metadata.","tags":["Collection"]},"post":{"description":"Create a new private Collection\n* Required: provide your access token in the request header as `Authorization: Bearer <access_token>`.\n","operationId":"backend.curation.api.v1.curation.collections.actions.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/collection_form_metadata","additionalProperties":false,"required":["name","description","contact_name","contact_email"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"collection_id":{"$ref":"#/components/schemas/collection_id"}},"type":"object"}}},"description":"Created"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"}},"security":[{"curatorAccess":[]}],"summary":"Create a Collection","tags":["Collection"]}},"/v1/collections/{collection_id}":{"delete":{"description":"Delete a private Collection or cancel a Revision.\n\n* Required: provide your access token in the request header as `Authorization: Bearer <access_token>`.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.actions.delete","parameters":[{"$ref":"#/components/parameters/path_collection_id"},{"description":"Perform the delete even if the Collection is published. Not allowed for users.\n","in":"query","name":"delete_published","required":false,"schema":{"type":"boolean"}}],"responses":{"204":{"$ref":"#/components/responses/204"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"405":{"$ref":"#/components/responses/405"}},"security":[{"curatorAccess":[]}],"summary":"Delete a private Collection.","tags":["Collection"]},"get":{"description":"Fetch full metadata for the Collection and its Datasets.\nAn Authorization token must be provided in order to retrieve the id of an associated Revision for this Collection (the `revising_in` field), if such a Revision currently exists.\n* Optional: provide your access token in the request header as `Authorization: Bearer <access_token>`.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.actions.get","parameters":[{"$ref":"#/components/parameters/path_collection_id"}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/collection"}]}}},"description":"OK"},"403":{"$ref":"#/components/responses/403"},"410":{"$ref":"#/components/responses/410"}},"security":[{"curatorAccessLenient":[]},{}],"summary":"Fetch a Collection with Datasets","tags":["Collection"]},"patch":{"description":"Update a private Collection or a Revision. If any Collection metadata fields are included in the body of the\nrequest, these fields will be updated for the specified Collection. If links are included, they will fully\nreplace all existing links. CELLxGENE Discover queries **Crossref** (link to their site) for the publication \nmetadata of the DOI such as the list of authors. If the DOI has not been submitted to Crossref by its \npublisher, then the request returns a 400 (BAD REQUEST).\n\n* Required: provide your access token in the request header as `Authorization: Bearer <access_token>`.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.actions.patch","parameters":[{"$ref":"#/components/parameters/path_collection_id"}],"requestBody":{"content":{"application/json":{"examples":{"update_description":{"summary":"Update the description","value":{"description":"New Collection description"}},"update_name":{"summary":"Update the name","value":{"name":"New Collection name"}}},"schema":{"$ref":"#/components/schemas/collection_form_metadata","additionalProperties":false}}}},"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/collection_form_metadata"},{"properties":{"publisher_metadata":{"$ref":"#/components/schemas/publisher_metadata"}},"type":"object"}],"required":["doi","links","name","description","contact_name","contact_email","publisher_metadata"]}}},"description":"OK"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"405":{"$ref":"#/components/responses/405"}},"security":[{"curatorAccess":[]}],"summary":"Update a Collection's metadata.","tags":["Collection"]}},"/v1/collections/{collection_id}/datasets":{"post":{"description":"Create a new empty Dataset and return the `id`. The `id` is used when uploading a datafile \nto S3 to identify what Dataset the file belongs to.\n\n* Required: provide your access token in the request header as `Authorization: bearer <access_token>`.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.datasets.actions.post","parameters":[{"$ref":"#/components/parameters/path_collection_id"}],"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"dataset_id":{"$ref":"#/components/schemas/dataset_id"}},"type":"object"}}},"description":"OK"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"405":{"$ref":"#/components/responses/405"}},"security":[{"curatorAccess":[]}],"summary":"Create an empty Dataset and return the `id` to be used in a future upload.","tags":["Collection"]}},"/v1/collections/{collection_id}/datasets/{dataset_id}":{"delete":{"description":"Delete or cancel processing for a Dataset with `dataset_id` in `collection_id`.  The `collection_id` MUST reference either a private Collection OR a  Revision.\nIf the Dataset is being processed, then this endpoint will cancel processing and delete the Dataset. While  the cancellation process is occurring, the Dataset may still appear as part of the Collection for a few minutes, but will eventually be removed.\n* Required: provide your access token in the request header as `Authorization: bearer <access_token>`.","operationId":"backend.curation.api.v1.curation.collections.collection_id.datasets.dataset_id.actions.delete","parameters":[{"$ref":"#/components/parameters/path_collection_id"},{"$ref":"#/components/parameters/path_dataset_id"},{"description":"Perform the delete even if the Dataset is published. Not allowed for users.\n","in":"query","name":"delete_published","required":false,"schema":{"type":"boolean"}}],"responses":{"202":{"content":{"application/json":{"schema":{"type":"string"}}},"description":"Accepted"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"405":{"$ref":"#/components/responses/405"}},"security":[{"curatorAccess":[]}],"summary":"Delete a Dataset or cancel processing for a Dataset in a private Collection or Revision.","tags":["Collection"]},"get":{"description":"Fetch Dataset metadata for `dataset_id` in a `collection_id`.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.datasets.dataset_id.actions.get","parameters":[{"$ref":"#/components/parameters/path_collection_id"},{"$ref":"#/components/parameters/path_dataset_id"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/dataset"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400"},"404":{"$ref":"#/components/responses/404"},"410":{"$ref":"#/components/responses/410"}},"summary":"Fetch Dataset metadata from a Collection.","tags":["Collection"]},"patch":{"description":"Update a Dataset's title and title of corresponding dataset artifacts.","operationId":"backend.curation.api.v1.curation.collections.collection_id.datasets.dataset_id.actions.patch","parameters":[{"$ref":"#/components/parameters/path_collection_id"},{"$ref":"#/components/parameters/path_dataset_id"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"title":{"description":"The title of the Dataset.","type":"string"}},"type":"object"}}}},"responses":{"202":{"$ref":"#/components/responses/202"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"405":{"$ref":"#/components/responses/405"},"410":{"$ref":"#/components/responses/410"}},"security":[{"curatorAccess":[]}],"summary":"Update a Dataset's metadata.","tags":["Collection","Dataset"]},"put":{"description":"Upload a datafile to become a Dataset. MUST use an existing Dataset id for the `dataset_id` path parameter. The\nDataset will be uploaded from the provided `link` which MUST either be a presigned AWS S3 URL or Dropbox shared\nfile URL.\n\n* Required: provide your access token in the request header as `Authorization: Bearer <access_token>`.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.datasets.dataset_id.actions.put","parameters":[{"$ref":"#/components/parameters/path_collection_id"},{"$ref":"#/components/parameters/path_dataset_id"}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"link":{"description":"A user-provided link to the Dataset source file. The Dataset will be uploaded from the provided \n`link` which MUST either be a presigned AWS S3  or Dropbox shared file URL.\n","type":"string"}},"type":"object"}}}},"responses":{"202":{"$ref":"#/components/responses/202"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"405":{"$ref":"#/components/responses/405"},"413":{"$ref":"#/components/responses/413"}},"security":[{"curatorAccess":[]}],"summary":"Upload a Dataset by providing a link","tags":["Collection"]}},"/v1/collections/{collection_id}/datasets/{dataset_id}/genetic_perturbations":{"get":{"description":"Returns the complete `uns['genetic_perturbations']` dictionary for the Dataset, keyed by perturbation ID.\nIf the Dataset was not processed from a file containing `uns['genetic_perturbations']`, the\n`genetic_perturbations` field in the response will be `null`.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.datasets.dataset_id.genetic_perturbations.actions.get","parameters":[{"$ref":"#/components/parameters/path_collection_id"},{"$ref":"#/components/parameters/path_dataset_id"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"genetic_perturbations":{"$ref":"#/components/schemas/genetic_perturbations_dict"}},"type":"object"}}},"description":"OK"},"404":{"$ref":"#/components/responses/404"},"410":{"$ref":"#/components/responses/410"}},"summary":"Fetch the full genetic_perturbations dictionary for a Dataset.","tags":["Collection"]}},"/v1/collections/{collection_id}/datasets/{dataset_id}/manifest":{"get":{"description":"Retrieve the manifest that represents the files in the dataset. This can be used to reprocess a dataset.\nThe public URLs will be used to represent the original raw assets.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.datasets.dataset_id.manifest.actions.get","parameters":[{"$ref":"#/components/parameters/path_collection_id"},{"$ref":"#/components/parameters/path_dataset_id"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ingestion_manifest"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400"},"404":{"$ref":"#/components/responses/404"},"410":{"$ref":"#/components/responses/410"}},"summary":"Get manifest for a dataset","tags":["Collection"]},"put":{"description":"Submit a manifest containing a list of files to be validated as a single dataset submission.\nThe request body must conform to the manifest schema and all files must be reachable.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.datasets.dataset_id.manifest.actions.put","parameters":[{"$ref":"#/components/parameters/path_collection_id"},{"$ref":"#/components/parameters/path_dataset_id"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ingestion_manifest","required":["anndata"]}}}},"responses":{"202":{"$ref":"#/components/responses/202"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"405":{"$ref":"#/components/responses/405"},"413":{"$ref":"#/components/responses/413"}},"security":[{"curatorAccess":[]}],"summary":"Upload dataset via a manifest","tags":["Collection"]}},"/v1/collections/{collection_id}/revision":{"post":{"description":"This starts a Revision of a published Collection. A Revision is a private Collection that is a copy of a\npublished Collection. When published, a Revision replaces the original published Collection in-place. Only one\nongoing Revision may exist per published Collection at any given time.\n\nAll methods of updating or adding Datasets and metadata to a Revision work the same as for a private Collection.\n\n* Required: provide your access token in the request header as `Authorization: Bearer <access_token>`.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.revision.post","parameters":[{"$ref":"#/components/parameters/path_collection_id"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"collection_id":{"$ref":"#/components/schemas/collection_id"}},"type":"object"}}},"description":"OK"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"}},"security":[{"curatorAccess":[]}],"summary":"Start a Revision of a published Collection","tags":["Collection"]}},"/v1/collections/{collection_id}/s3-upload-credentials":{"get":{"description":"Retrieve temporary AWS credentials for uploading Dataset source files to S3 to create\nor update Datasets for the specified Collection.\n\n\n* `<collection_id>` MUST NOT be a published Collection. Only uploads to private Collections\n(unpublished OR ongoing Revision) will be processed.\n\n* If there is an existing Dataset with `<dataset_id>` in `<collection_id>`, the existing Dataset\nSHALL be replaced.\n\n\nThe response contains the credentials required for uploading to our AWS S3 bucket:\n\n* access_key\n\n* secret_access_key\n\n* session_token\n\n\nWe recommend using an AWS SDK in your preferred language to perform the s3 upload, such as `boto3` in Python or\n`aws.s3` in R. To upload a datafile to a Dataset, the id of the Dataset (`<dataset_id>`) must be appended to the\ns3 key prefix (`<UploadKeyPrefix>`) that is returned in the response body from this endpoint. You must also\nretrieve the `Bucket` attribute on the response body. These values must be applied accordingly to the\n'upload file' (or equivalent) function in the s3 module of whichever AWS SDK you choose to use. Generally,\nthese functions take a 'key' or 'object' argument in addition to a 'bucket' argument. Taking the values from the\naforementioned `\"UploadKeyPrefix\"` and `\"Bucket\"` attributes that are returned on the response to this endpoint,\nthis resolves to the following:\n\n* the object or key: `<UploadKeyPrefix>/<dataset_id>` (note: you must include the joining slash `/`)\n\n* the bucket: `<Bucket>`\n\n\nOnce a file is successfully uploaded, it wil be processed and added to the Collection that you specified in your\ninitial request to this endpoint, with no further user action required. Use\n`GET /curation/collections/{collection_id}/datasets/{dataset_id}` to retrieve metadata for the\nDataset in question in order to check on its processing status.\n\nA Dataset uploaded directly to S3 in this manner will appear in the Collection only once the Dataset has started\nprocessing.\n\n* Required: provide your access token in the request header as `Authorization: Bearer <access_token>`.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.s3_upload_credentials.get","parameters":[{"$ref":"#/components/parameters/path_collection_id"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"Bucket":{"description":"The AWS S3 bucket to upload to.","type":"string"},"UploadKeyPrefix":{"description":"Use this as a prefix to the S3 Key used to upload the file to S3. This will help ensure that it is\nprocessed correctly.\n","type":"string"},"credentials":{"properties":{"AccessKeyId":{"type":"string"},"SecretAccessKey":{"type":"string"},"SessionToken":{"type":"string"}},"type":"object"}},"type":"object"}}},"description":"OK"},"401":{"$ref":"#/components/responses/401"},"410":{"$ref":"#/components/responses/410"}},"security":[{"curatorAccess":[]}],"summary":"Get credentials for uploading local files","tags":["Collection"]}},"/v1/collections/{collection_id}/versions":{"get":{"description":"Fetch full metadata for all published Collection Versions and their constituent Dataset Versions. The `collection_id` must reference a *Collection*, **NOT** a *Collection Version*. Collection Versions are returned in reverse-chronological order.\n","operationId":"backend.curation.api.v1.curation.collections.collection_id.versions.get","parameters":[{"$ref":"#/components/parameters/path_collection_id"}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/collection_version"},"type":"array"}}},"description":"OK"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"410":{"$ref":"#/components/responses/410"}},"summary":"Fetch all Collection Versions for a given Collection","tags":["Collection"]}},"/v1/dataset_versions/{dataset_version_id}":{"get":{"description":"Fetch Dataset metadata for a Dataset Version. The `dataset_version_id` must reference a *Dataset Version*,\n**NOT** a *Dataset*.\n","operationId":"backend.curation.api.v1.curation.dataset_versions.dataset_version_id.actions.get","parameters":[{"$ref":"#/components/parameters/path_dataset_version_id"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/dataset_version"}}},"description":"OK"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"410":{"$ref":"#/components/responses/410"}},"summary":"Get full metadata for a Dataset Version","tags":["Dataset Version"]}},"/v1/datasets":{"get":{"description":"List all Datasets with full metadata as well as Collection name and Collection doi.\n\nThe default `visibility` is PUBLIC. When visibility is PUBLIC, then a list of all public Datasets is returned.\n\nWhen the visibility parameter is set to PRIVATE, a list of all private Datasets that the user is authorized to\naccess is returned. An access token MUST be set in the request header as: `Authorization:\nBearer <access_token>`.\n\nDatasets returned include a `visibility` field that indicates whether the Dataset is public or private.\n\n* Optional: provide your access token in the request header as `Authorization: Bearer <access_token>`.\n","operationId":"backend.curation.api.v1.curation.datasets.actions.get","parameters":[{"$ref":"#/components/parameters/schema_version"},{"$ref":"#/components/parameters/dataset_visibility"},{"description":"Filter datasets by analysis type.\n- `pre-analysis`: return only datasets belonging to collections where `is_pre_analysis` is True.\n- `post-analysis`: return only datasets belonging to collections where `is_pre_analysis` is False.\n","in":"query","name":"analysis","required":false,"schema":{"enum":["pre-analysis","post-analysis"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/dataset_index"},"type":"array"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400"},"403":{"$ref":"#/components/responses/403"}},"security":[{"curatorAccessLenient":[]},{}],"summary":"List all Datasets","tags":["Dataset"]}},"/v1/datasets/{dataset_id}/versions":{"get":{"description":"List all published Dataset Versions for a given Dataset. The `dataset_id` must reference a *Dataset*, **NOT** a\n*Dataset Version*. Dataset Versions are returned in reverse-chronological order.\n","operationId":"backend.curation.api.v1.curation.datasets.dataset_id.versions.actions.get","parameters":[{"$ref":"#/components/parameters/path_dataset_id"}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/dataset_version"},"type":"array"}}},"description":"OK"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"410":{"$ref":"#/components/responses/410"}},"summary":"List all Dataset Versions for a given Dataset","tags":["Dataset"]}}},"servers":[{"url":"/curation"}]}
