API Reference > ecSchema-Metadata > Metadata > Schema > createUnit createUnit MethodProtected Creates a Unit with the provided name in this schema. createUnit(name: string): Promise<Unit> Parameter Type Description name string Returns - Promise<Unit> Defined in core/ecschema-metadata/src/Metadata/Schema.ts Line 319 Last Updated: 12 June, 2024