Upload Jsonl
POST/v2/projects/:projectid/datasets/
Creates a new dataset.
Parameters:
- projectid (str): The ID of the project to upload the dataset to.
- data (UploadFile): The JSON file containing the dataset.
- manifest (UploadFile): The manifest file containing metadata about the dataset.
Returns:
- DatasetInfo: Information about the uploaded dataset.
Raises:
- HTTPException(404): If the project is not found.
- HTTPException(422): If there is an error parsing the dataset or manifest.
Request
Path Parameters
projectid Projectidrequired
- multipart/form-data
Body
required
data binaryrequired
manifest binaryrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- 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...