Skip to main content

Collections API

A Collection is a unit for grouping and managing related assets such as datasets, codes, and pipelines.

1. List Collections

Retrieves a list of all collections.

Request

GET /collections/

ParameterTypeRequiredDescription
limitintegerNoMaximum number of items to retrieve (default: 100)
tokenstringNoToken for pagination

Response

{
"items": {
"collection-1": "{\"id\": \"collection-1\", \"name\": \"my-collection\", ...}",
"collection-2": "..."
},
"token": "next-page-token"
}

2. Create Collection

Creates a new collection.

Request

POST /collections/

Body Schema (Collection)

FieldTypeRequiredDescription
namestringYesCollection name (unique)
aliasstringNoAlias (display name)
typestringNoCollection type
groupsarray[string]NoList of groups
tagsarray[string]NoList of tags
commentstringNoDescription and notes

Example

{
"name": "marketing_data",
"alias": "Marketing Data",
"tags": ["marketing", "2024"],
"comment": "Collection for marketing department"
}

Response

{
"item": "collection-uuid-1234"
}

3. Get Collection

Retrieves detailed information of a specific collection.

Request

GET /collections/{collection_id}

ParameterTypeRequiredDescription
collection_idstringYesCollection ID
collection_versionstringNoUsed for querying specific versions

Response

{
"id": "collection-uuid-1234",
"name": "marketing_data",
"alias": "Marketing Data",
"category": "collection",
"created_at": 1704067200000,
"updated_at": 1704067200000,
...
}

4. Update Collection

Updates collection information.

Request

PUT /collections/{collection_id}

Body Schema (CollectionUpdate)

FieldTypeRequiredDescription
namestringNoChange name
aliasstringNoChange alias
typestringNoChange type
groupsarray[string]NoReplace entire group list
tagsarray[string]NoReplace entire tag list
commentstringNoChange description

Example

{
"alias": "Marketing Data (Updated)",
"tags": ["marketing", "updated"]
}

5. Delete Collection

Deletes a collection. Upon deletion, the collection name is also removed from the group information of assets belonging to that collection.

Request

DELETE /collections/{collection_id}

Response

{
"message": "Collection deleted successfully"
}