• Create a template.

    import {Templates} from '@verdocs/js-sdk/Templates';

    const newTemplate = await Templates.createTemplatev2((VerdocsEndpoint.getDefault(), {...});

    Parameters

    • endpoint: VerdocsEndpoint
    • params: ITemplateCreateParams
    • Optional onUploadProgress: ((percent, loadedBytes, totalBytes) => void)
        • (percent, loadedBytes, totalBytes): void
        • Parameters

          • percent: number
          • loadedBytes: number
          • totalBytes: number

          Returns void

    Returns Promise<ITemplate>