Update file schema
This endpoint is used to patch the schema fields that are associated with the file types in the workspace.
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.
- 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.
- 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 allowed values are
MAJOR,MINOR, andPATCH.
- 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.
Authorizations
API key for authentication
Body
Update file schema
The body is of type string.
Response
The schema is patched