curl --request PUT \
--url https://api.kadoa.com/v4/schemas/{schemaId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"entity": "<string>",
"fields": [
{
"name": "<string>",
"description": "<string>",
"dataType": "STRING",
"fieldType": "SCHEMA",
"example": "<string>",
"isKey": true
}
]
}
'{
"error": false,
"success": true,
"message": "<string>",
"updatedSchema": {
"id": "<string>",
"name": "<string>",
"isPublic": true,
"schema": [
{
"name": "<string>",
"description": "<string>",
"dataType": "STRING",
"fieldType": "SCHEMA",
"example": "<string>",
"isKey": true
}
],
"entity": "<string>",
"description": {
"hintText": "<string>"
}
}
}Update schema metadata or create a new revision with updated fields
curl --request PUT \
--url https://api.kadoa.com/v4/schemas/{schemaId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"entity": "<string>",
"fields": [
{
"name": "<string>",
"description": "<string>",
"dataType": "STRING",
"fieldType": "SCHEMA",
"example": "<string>",
"isKey": true
}
]
}
'{
"error": false,
"success": true,
"message": "<string>",
"updatedSchema": {
"id": "<string>",
"name": "<string>",
"isPublic": true,
"schema": [
{
"name": "<string>",
"description": "<string>",
"dataType": "STRING",
"fieldType": "SCHEMA",
"example": "<string>",
"isKey": true
}
],
"entity": "<string>",
"description": {
"hintText": "<string>"
}
}
}API key for authentication
Schema ID
Body
Request body for updating a schema
Name of the schema
1 - 255Entity type for the schema
1Array of field definitions
Extraction field schema
Show child attributes
200