Skip to main content
func (collectionClient) Get(
    ctx context.Context,
    datasetID uuid.UUID,
    name string,
) (*datasets.Collection, error)
Get a dataset by its slug.

Parameters

datasetID
uuid.UUID
The id of the dataset
name
string
The name of the collection

Returns

The created collection object.
collection, err := client.Collections.Get(ctx,
    datasetID,
    "My-collection",
)

Errors

not_found
No such dataset
The specified dataset does not exist.