Skip to main content
PUT
/
org
/
search_schema
Update Search Schema
curl --request PUT \
  --url https://api.example.com/org/search_schema \
  --header 'Content-Type: application/json' \
  --header 'X-Org-Id: <api-key>' \
  --header 'X-Session-Id: <api-key>' \
  --header 'X-User-Id: <api-key>' \
  --data '
{
  "search_schema": {
    "tables": {
      "users": {
        "columns": [
          "id",
          "name",
          "email"
        ],
        "types": [
          "int",
          "varchar",
          "varchar"
        ]
      }
    }
  }
}
'
{
  "success": true,
  "org_id": "<string>",
  "updated_by": "<string>",
  "message": "<string>"
}

Authorizations

X-User-Id
string
header
required

User identifier

X-Session-Id
string
header
required

JWT session token

X-Org-Id
string
header
required

Organization identifier

Body

application/json

Request to update search schema.

search_schema
Search Schema · object
required

Search schema configuration

Example:
{
"tables": {
"users": {
"columns": ["id", "name", "email"],
"types": ["int", "varchar", "varchar"]
}
}
}

Response

Successful Response

Update schema response.

success
boolean
required

Whether the operation was successful

org_id
string
required

Organization ID

updated_by
string
required

User who updated the schema

message
string | null

Response message