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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Example:

"c622793c-5e69-4670-bfa5-6e57b6fcbc74"

Body

application/json
name
string
Example:

"News Articles"

structure
object

Response

200 - application/json
200
data
object
message
string
Example:

"Schema updated successfully"

status
boolean
Example:

true