Skip to main content
PUT
/
v4
/
schemas
/
{schemaId}
Update existing schema
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>",
      "fieldType": "SCHEMA",
      "example": "<string>",
      "dataType": "STRING",
      "isKey": true
    }
  ]
}'
{
  "error": true,
  "success": true,
  "message": "<string>"
}

Authorizations

x-api-key
string
header
required

API key for authentication

Path Parameters

schemaId
string
required

Schema ID

Body

application/json

Body

Request body for updating a schema

name
string

Name of the schema

Required string length: 1 - 255
entity
string | null

Entity type for the schema

Minimum length: 1
fields
(ExtractionSchemaField · object | ExtractionMetadataField · object | ExtractionClassificationField · object)[]

Array of field definitions

  • ExtractionSchemaField
  • ExtractionMetadataField
  • ExtractionClassificationField

Response

200

Response for schema update

error
boolean
required

Error flag (always false on success)

success
boolean
required

Success flag

message
string
required

Success message

I