cURL
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 }
Update an existing schema
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"c622793c-5e69-4670-bfa5-6e57b6fcbc74"
"News Articles"
Show child attributes
200
"Schema updated successfully"
true
Was this page helpful?