PATCH
Update a file's schema field definitions
Request · Response · Guide: Extract fields
The response will contain a list of schemas that are associated with the file types in the workspace.The fileId field is used to specify the file that should be changed to the new schema version.The schemaId field is used to specify the schema that should be updated.The shouldCreateCustomIfNotExists field is used to specify whether a custom schema should be created if it does not exist.The schemaVersionType field is used to specify the type of schema version to be create. The allowed values are MAJOR, MINOR, and PATCH.The shouldChangeDocumentToNewSchemaVersion field is used to specify whether the document should be changed to the new schema version.The fieldPaths field is used to specify the fields that should be updated.

Authorizations

x-api-key
string
header
required

API key for authentication

Headers

Idempotency-Key
string

Optional opaque key (max 255 chars, UUIDv4 recommended) making this request idempotent for 24h: a retry with the same key and body replays the original response with Idempotent-Replayed: true.

Body

application/json

Update file schema

The body is of type string.

Response

The schema is patched

id
string
fields
object[]
blueprintId
string
originalSchemaId
string
schemaHistoryId
string
schemaHistoryVersionNumber
number
fileId
string
blueprintMode
string
schemaType
string
state
string
usageApprovalState
string
schemaOverrideType
string
aiSchemaVersion
string
createdAt
string
updatedAt
string
deletedAt
string
deletedBy
string