Skip to content

Datasets

Create a dataset
client.Datasets.New(ctx, body) (*Dataset, error)
POST/v5/datasets
List datasets
client.Datasets.List(ctx, query) (*CursorPage[Dataset], error)
GET/v5/datasets
Archive a dataset
client.Datasets.Archive(ctx, datasetID) (*DatasetArchiveResponse, error)
DELETE/v5/datasets/{dataset_id}
Update or restore a dataset
client.Datasets.Update(ctx, datasetID, body) (*Dataset, error)
PATCH/v5/datasets/{dataset_id}
Get a dataset
client.Datasets.Get(ctx, datasetID, query) (*Dataset, error)
GET/v5/datasets/{dataset_id}
ModelsExpand Collapse
type Dataset struct{…}
ID string

The unique identifier of the entity.

CreatedAt Time

The date and time when the entity was created in ISO format.

formatdate-time
CreatedBy Identity

The identity that created the entity.

ID string
Type IdentityType
One of the following:
const IdentityTypeUser IdentityType = "user"
const IdentityTypeServiceAccount IdentityType = "service_account"
Object IdentityObjectOptional
CurrentVersionNum int64
Name string
Tags []string

The tags associated with the entity

ArchivedAt TimeOptional

The date and time when the entity was archived in ISO format.

formatdate-time
Description stringOptional
Object DatasetObjectOptional