API Reference > ecSchema-Metadata > Metadata > Schema > setVersion setVersion Method Sets the version of the SchemaKey identifying the schema. setVersion(readVersion?: number, writeVersion?: number, minorVersion?: number): void Parameter Type Description readVersion number The read version of the schema. If undefined, the value from the existing SchemaKey will be used. writeVersion number The write version of the schema. If undefined, the value from the existing SchemaKey will be used. minorVersion number The minor version of the schema. If undefined, the value from the existing SchemaKey will be used. Returns - void Defined in core/ecschema-metadata/src/Metadata/Schema.ts Line 364 Last Updated: 12 June, 2024