Schemas
Update Schema
Schemas
Update Schema
Update an existing schema
PUT
/
schemas
/
{id}
curl --request PUT \
--url https://api.withflora.io/v1/schemas/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "News Articles",
"structure": {
"items": {
"properties": {
"summary": {
"describe": "The news summary",
"type": "string"
},
"title": {
"describe": "The article title",
"type": "string"
}
},
"type": "object"
},
"required": true,
"type": "array"
}
}'
{
"data": {
"createdAt": "2025-03-20T15:37:16.163+00:00",
"id": "00f9190e-9a4a-4e08-ba00-f888437ed3c4",
"name": "News Articles",
"structure": {
"items": {
"properties": {
"summary": {
"describe": "The news summary",
"type": "string"
},
"title": {
"describe": "The article title",
"type": "string"
}
},
"type": "object"
},
"required": true,
"type": "array"
}
},
"message": "Schema updated successfully",
"status": true
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Example:
"c622793c-5e69-4670-bfa5-6e57b6fcbc74"
Body
application/json
Example:
"News Articles"
Example:
"object"
Example:
true
Example:
"array"
Response
200 - application/json
200
Example:
"2025-03-20T15:37:16.163+00:00"
Example:
"00f9190e-9a4a-4e08-ba00-f888437ed3c4"
Example:
"News Articles"
Example:
"Schema updated successfully"
Example:
true
Was this page helpful?
curl --request PUT \
--url https://api.withflora.io/v1/schemas/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "News Articles",
"structure": {
"items": {
"properties": {
"summary": {
"describe": "The news summary",
"type": "string"
},
"title": {
"describe": "The article title",
"type": "string"
}
},
"type": "object"
},
"required": true,
"type": "array"
}
}'
{
"data": {
"createdAt": "2025-03-20T15:37:16.163+00:00",
"id": "00f9190e-9a4a-4e08-ba00-f888437ed3c4",
"name": "News Articles",
"structure": {
"items": {
"properties": {
"summary": {
"describe": "The news summary",
"type": "string"
},
"title": {
"describe": "The article title",
"type": "string"
}
},
"type": "object"
},
"required": true,
"type": "array"
}
},
"message": "Schema updated successfully",
"status": true
}