@verdocs/js-sdk 6.2.0-beta.3 → 6.2.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3477,9 +3477,10 @@ const toggleTemplateStar = (endpoint, templateId) => endpoint.api //
3477
3477
  * @apiBody string(format:binary) file Document file to attach. The file name will automatically be used as the document name.
3478
3478
  * @apiSuccess ITemplateDocument . Template document
3479
3479
  */
3480
- const createTemplateDocument = (endpoint, file, onUploadProgress) => {
3480
+ const createTemplateDocument = (endpoint, template_id, file, onUploadProgress) => {
3481
3481
  const formData = new FormData();
3482
3482
  formData.append('document', file, file.name);
3483
+ formData.append('template_id', template_id);
3483
3484
  return endpoint.api //
3484
3485
  .post(`/v2/template-documents`, formData, {
3485
3486
  timeout: 120000,