curl --request POST \
--url https://api.kadoa.com/v4/schemas/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"fields": [
{
"name": "<string>",
"description": "<string>",
"dataType": "STRING",
"fieldType": "SCHEMA",
"example": "<string>",
"isKey": true
}
],
"entity": "<string>"
}
'{
"error": false,
"success": true,
"schemaId": "<string>",
"message": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}Create a new data schema with specified fields and entity type
curl --request POST \
--url https://api.kadoa.com/v4/schemas/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"fields": [
{
"name": "<string>",
"description": "<string>",
"dataType": "STRING",
"fieldType": "SCHEMA",
"example": "<string>",
"isKey": true
}
],
"entity": "<string>"
}
'{
"error": false,
"success": true,
"schemaId": "<string>",
"message": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}API key for authentication
Body
Request body for creating a new schema
Name of the schema
1 - 255Schema fields for extraction - choose from Data Field (typed data), Raw Content Field (HTML/Markdown), or Classification Field (predefined categories)
1Extraction field schema
Show child attributes
Entity type for the schema
1201
Response for schema creation