Create Schema
POST/api/v1/extraction/schemas
Create Schema
Request
Cookie Parameters
session any
- application/json
Body
required
- MOD1
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
Array [
]
name Name (string)required
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
data_schema
object
required
The schema of the data
property name*
object
anyOf
object
string
integer
number
boolean
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
- MOD1
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
Array [
]
id uuidrequired
Unique identifier
created_at
object
Creation datetime
anyOf
string
updated_at
object
Update datetime
anyOf
string
name Name (string)required
The name of the extraction schema
project_id uuidrequired
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
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}