File
Get Files and Group IDs for Dataset
Get all files and their group ids which belong to a given dataset specified by the dataset_id parameter. 10 files and group ids are returned per page. This route may return the same file multiple times if the file is associated with multiple groups.
get/api/dataset/files/{dataset_id}/{page}
Path parameters
dataset_idstring uuid required
The id of the dataset to fetch files for.
pageinteger required
The page number of files you wish to fetch. Each page contains at most 10 files.
Headers
TR-Datasetstring uuid required
The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.
Response
JSON body representing the files and their group ids in the current dataset
Example response
{
"file_and_group_ids": [
{
"file": {
"created_at": "2021-01-01 00:00:00.000",
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"file_name": "file.txt",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"link": "https://trieve.ai",
"metadata": {
"key": "value"
},
"size": 1000,
"tag_set": "tag1,tag2",
"time_stamp": "2021-01-01 00:00:00.000",
"updated_at": "2021-01-01 00:00:00.000"
}
}
]
}