Schemas & file types
Update a file's schema field definitions
This endpoint is used to patch the schema fields that are associated with the file types in the workspace.
PATCH
Update a file's schema field definitions
Request · Response · Guide: Extract fields
More details
More details
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
API key for authentication
Headers
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