List Datasets
GET/v2/projects/:projectid/datasets/
Retrieve a list of datasets for a specific project.
Parameters:
- projectid (str): The ID of the project.
Returns:
- list[DatasetInfo]: A list of dataset information objects.
Raises:
- HTTPException: If the user is not authenticated or authorized to access the project.
Example:
GET /projects/123/datasets/
Response:
[
{
"id": "1",
"name": "Dataset 1",
"manifest": ...,
"size": 100
},
{
"id": "2",
"name": "Dataset 2",
"manifest": ...,
"size": 200
}
]
Request
Path Parameters
projectid Projectidrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
- Status
]
id Id (string)required
name Name (string)required
size Size (integer)required
manifest objectrequired
status
object
anyOf
string
Possible values: [PENDING
, RUNNING
, COMPLETED
, FAILED
]
[
{
"id": "string",
"name": "string",
"size": 0,
"manifest": {},
"status": "PENDING"
}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...