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 342 Last Updated: 20 June, 2023