Skip to main content
PATCH
Update a file's schema field definitions
It is used to change the file schema to a new version, and update the file fields accordingly. The shouldChangeDocumentToNewSchemaVersion flag is used to determine whether the file should be updated to the new schema version.
  • If set to true, the file will be updated to the new schema version.
  • If set to false, the file will not be updated, and the new schema version will be created as a new schema version.
The shouldCreateCustomIfNotExists flag is used to determine whether a custom schema should be created if the file does not have a custom schema.
  • If set to true, a custom schema will be created if the file does not have a custom schema.
  • If set to false, no custom schema will be created.
The schemaVersionType field is used to determine the type of schema version that should be created.
  • The allowed values are MAJOR, MINOR, and PATCH.
The fieldPaths field is used to specify the fields that should be updated in the file.
  • The fields that are specified in the fieldPaths field will be updated with the new schema fields.
  • If a field is not specified in the fieldPaths field, the field will not be updated.
This endpoint accepts an optional Idempotency-Key request header so a retry cannot apply the change twice. See Idempotent requests.

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