Infer Schema
POST/api/v1/extraction/schemas/infer
Infer Schema
Request
Cookie Parameters
- application/json
Body
required
- MOD1
- MOD1
schema_id
object
The ID of a schema to update with the new schema
anyOf
string
The name of the extraction schema
Possible values: non-empty
and <= 3000 characters
project_id
object
The ID of the project that the extraction schema belongs to
anyOf
string
The IDs of the files that the extraction schema contains
Possible values: >= 1
Whether to stream the results of the extraction schema
false
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
- MOD1
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
Array [
]
Unique identifier
created_at
object
Creation datetime
anyOf
string
updated_at
object
Update datetime
anyOf
string
The name of the extraction schema
The ID of the project that the extraction schema belongs to
data_schema
object
The schema of the data
anyOf
property name*
object
anyOf
object
string
integer
number
boolean
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"name": "string",
"project_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"data_schema": {}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}