func (datasetClient) Update(
ctx context.Context,
id uuid.UUID,
kind datasets.DatasetKind,
codeName string,
name string,
fields []datasets.Field,
options ...datasets.DatasetOption,
) (*datasets.Dataset, error)
Update an existing dataset by ID with the given code name, display name, schema kind, custom fields, and metadata.
Parameters
The ID of the dataset to update.
kind
datasets.DatasetKind
required
The dataset kind.
The stable code identifier for the dataset.
The display name of the dataset.
The full custom field list for the dataset schema.
Options for dataset metadata.
Options
datasets.WithSummary(summary string)
Set a short dataset summary.
datasets.WithDescription(description string)
Set the dataset’s markdown description.
Returns
The updated dataset object.
dataset, err := client.Datasets.Update(ctx,
datasetID,
datasets.KindSpatiotemporal,
"my_catalog",
"My catalog",
[]datasets.Field{
field.String("source").Description("Source system"),
field.Float64("cloud_cover"),
field.Timestamp("processed_at"),
},
datasets.WithDescription("Catalog of scenes prepared for analysis."),
)