Skip to main content
PATCH
Update Citation Schema

Headers

authorization
string
required
Your API key for authentication.

Query Parameters

id
string
required
The unique identifier of the citation schema to update.

Body Parameters

name
string
The updated name for the citation schema.
description
string
The updated description for the citation schema.
schema
object
The updated JSON schema configuration for citation extraction. This completely replaces the existing schema configuration.The schema object can contain:
  • variables: Array of variable definitions for data extraction
  • groupings: Array of related variable collections
  • conditions: Array of conditional logic rules
Example structure:
At least one field (name, description, or schema) must be provided in the request body.

Response

status
integer
HTTP status code (200 for success).
data
object
The updated citation schema object.
id
string
The unique identifier for the citation schema (UUID format).
name
string
The updated name of the citation schema.
description
string
The updated description of the citation schema.
org_id
string
The organization ID that owns this schema.
schema
object
The updated JSON schema configuration for citation extraction.
created_at
string
The timestamp when the citation schema was originally created (ISO 8601 format).
errors
null
Will be null for successful requests.

Error Responses

400 Bad Request
Returned when:
  • The schema ID parameter is missing
  • No update fields are provided in the request body
404 Not Found
Returned when the specified citation schema is not found or doesn’t belong to your organization.

Docs for agents: llms.txt