Dataset.clear_preferred_figure¶
Clear the preferred figure to restore the normal graph (dataset:update).
Signature¶
clear_preferred_figure() -> Dataset
HTTP parameters¶
| Name | In | Type | Required | Default |
|---|---|---|---|---|
dataset_id |
path |
string |
yes | - |
Return shape¶
HTTP 200 — OK
Schema: DatasetSchema
| Field | Type | Required |
|---|---|---|
context_completeness |
ContextCompletenessSchema |
no |
created_at |
string |
no |
datafiles |
array<DataFileSummarySchema> |
no |
description |
string |
yes |
id |
string |
yes |
imagefile |
ImageFileSchema |
no |
instruments |
array<InstrumentSourceSchema> |
no |
metadata_assessment |
MetadataAssessmentOut |
no |
owner |
DatasetOwnerSchema |
no |
param_snaps |
array<ParamSnapSchema> |
no |
parameters |
array<ParameterValueSchema> |
no |
preferred_figure_id |
string |
no |
project_id |
string |
yes |
related_files |
array<RelatedFileSchema> |
no |
report_count |
integer |
no |
setup_artifacts |
array<SetupArtifactOut> |
no |
slug |
string |
no |
slug_number |
integer |
no |
source_metadata |
object |
no |
source_type |
string |
no |
tags |
array<TagSchema> |
no |
title |
string |
yes |
updated_at |
string |
no |
Permission¶
Required permission: dataset:update
HTTP¶
DELETE /api/datasets/{id}/preferred-figure (clearDatasetPreferredFigure)
Usage¶
dataset.clear_preferred_figure()