Path Parameters
The unique identifier of the schema to update.
Request Body
{
"description": "Updated schema with more fields",
"schema_string": {
"fields": [
"invoice_number",
"date",
"total",
"customer_name",
"items",
"tax",
"currency",
"payment_terms"
]
}
}
Response
{
"success": true,
"data": {
"id": "b3376c85-86e0-476e-aee9-5f05afaa05ea",
"name": "invoice_schema_v1",
"type": "invoice",
"description": "Updated schema with more fields",
"schema_string": "{\"fields\": [...]}",
"version": 2,
"is_active": true,
"created_at": "2024-01-18T12:34:56Z",
"updated_at": "2024-01-18T12:35:56Z"
}
}
Examples
Update a Schema
curl -X PUT "https://api.invaro.ai/api/v1/schemas/id/b3376c85-86e0-476e-aee9-5f05afaa05ea" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"description": "Updated invoice schema with additional fields",
"schema_string": {
"fields": [
"invoice_number",
"date",
"total",
"customer_name",
"items",
"tax",
"gst_number",
"payment_terms",
"currency",
"due_date"
]
}
}'
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The unique identifier of the schema.
Updated description for the schema
Example:"Updated schema with more fields"
The updated schema definition itself
Schema updated successfully